Eli Friedman wrote:
> While you're at it, can you switch the test to use FileCheck?
> ("CHECK-NOT: foo" or something like that.)
> 
> Otherwise, fine.

I will commit the attached patch.

Thanks,
Sebastian
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by 
The Linux Foundation
>From 948ed6414a205866ea9169fda971ac635fef78ab Mon Sep 17 00:00:00 2001
From: Sebastian Pop <[email protected]>
Date: Mon, 26 Nov 2012 13:26:54 -0600
Subject: [PATCH] check that always_inline attribute works with -fno-inline

Clean up the existing test to use FileCheck.
---
 test/CodeGen/always-inline.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/test/CodeGen/always-inline.c b/test/CodeGen/always-inline.c
index dc74be5..c9fd1ae 100644
--- a/test/CodeGen/always-inline.c
+++ b/test/CodeGen/always-inline.c
@@ -1,4 +1,7 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | grep call | not grep foo
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
+
+// CHECK-NOT: foo
 
 void bar() {
 }
-- 
1.7.6.4

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to