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 | 60be4deb8d90e58cc65b41722d694599e387fc33 (patch) | |
tree | cdf1bc96ad37bf10643e45856cd8ea02372f28af | |
parent | 86f436f451ce5004b155d1f30495586dba6180b7 (diff) |
FileCheckize this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127327 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Misc/caret-diags-macros.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/test/Misc/caret-diags-macros.c b/test/Misc/caret-diags-macros.c index e138f59d60..e45ad2a605 100644 --- a/test/Misc/caret-diags-macros.c +++ b/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: } |