diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/Driver/fatal-warnings.c | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
Notes
Diffstat (limited to 'test/Driver/fatal-warnings.c')
-rw-r--r-- | test/Driver/fatal-warnings.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/fatal-warnings.c b/test/Driver/fatal-warnings.c new file mode 100644 index 000000000000..6239b25e8917 --- /dev/null +++ b/test/Driver/fatal-warnings.c @@ -0,0 +1,8 @@ +// RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck %s +// RUN: not %clang %s -c -o %t.o -target i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 %t.log +// FileCheck --check-prefix=CHECK-AS %s -input-file %t.log + +// CHECK: "-cc1" {{.*}} "-massembler-fatal-warnings" +// CHECK-AS: error: .warning argument must be a string + +__asm(".warning 1"); |