FileCheck'ize a test

llvm-svn: 174814
This commit is contained in:
Dmitri Gribenko 2013-02-09 16:25:38 +00:00
parent a7c3877dc7
commit f37d0cd780
1 changed files with 2 additions and 1 deletions

View File

@ -1,9 +1,10 @@
// RUN: %clang_cc1 -E %s | grep '#pragma foo bar'
// RUN: %clang_cc1 -fsyntax-only -Wunknown-pragmas -verify %s
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
// GCC doesn't expand macro args for unrecognized pragmas.
#define bar xX
#pragma foo bar // expected-warning {{unknown pragma ignored}}
// CHECK: {{^}}#pragma foo bar{{$}}
#pragma STDC FP_CONTRACT ON
#pragma STDC FP_CONTRACT OFF