aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/fatal-warnings.c
blob: 12c239cf120831f663def2929b4a0c907a865393 (plain)
1
2
3
4
5
6
7
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");