diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-03-09 10:56:54 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-03-09 10:56:54 +0000 |
commit | 1b7cc20fd8d265ba8cfae684d633c289836633bb (patch) | |
tree | cbefaefe51b15446cf3a5423066ed7c78163243c /clang/test | |
parent | e56d8cf846e5e782bd56a26ca6976d400c9dc219 (diff) | |
download | bcm5719-llvm-1b7cc20fd8d265ba8cfae684d633c289836633bb.tar.gz bcm5719-llvm-1b7cc20fd8d265ba8cfae684d633c289836633bb.zip |
FileCheckize this test.
llvm-svn: 127327
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Misc/caret-diags-macros.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/clang/test/Misc/caret-diags-macros.c b/clang/test/Misc/caret-diags-macros.c index e138f59d608..e45ad2a6051 100644 --- a/clang/test/Misc/caret-diags-macros.c +++ b/clang/test/Misc/caret-diags-macros.c @@ -1,27 +1,24 @@ -// RUN: %clang_cc1 -fsyntax-only %s > %t 2>&1 +// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s #define M1(x) x - -// RUN: grep ":6:12: note: instantiated from:" %t #define M2 1; - void foo() { - // RUN: grep ":10:2: warning: expression result unused" %t - M1( - // RUN: grep ":12:5: note: instantiated from:" %t - M2) + M1( + M2); + // CHECK: {{.*}}:6:{{[0-9]+}}: warning: expression result unused + // CHECK: {{.*}}:7:{{[0-9]+}}: note: instantiated from: + // CHECK: {{.*}}:4:{{[0-9]+}}: note: instantiated from: } -// RUN: grep ":16:11: note: instantiated from:" %t #define A 1 -// RUN: grep ":18:11: note: instantiated from:" %t #define B A -// RUN: grep ":20:11: note: instantiated from:" %t #define C B - void bar() { - // RUN: grep ":24:3: warning: expression result unused" %t C; + // CHECK: {{.*}}:17:{{[0-9]+}}: warning: expression result unused + // CHECK: {{.*}}:15:{{[0-9]+}}: note: instantiated from: + // CHECK: {{.*}}:14:{{[0-9]+}}: note: instantiated from: + // CHECK: {{.*}}:13:{{[0-9]+}}: note: instantiated from: } |