xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/clang-exception-flags.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
2*f4a2713aSLionel Sambuc // DEFAULT: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
3*f4a2713aSLionel Sambuc //
4*f4a2713aSLionel Sambuc // RUN: %clang -### -fexceptions %s 2>&1 | FileCheck %s -check-prefix=ON1
5*f4a2713aSLionel Sambuc // ON1: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
6*f4a2713aSLionel Sambuc //
7*f4a2713aSLionel Sambuc // RUN: %clang -### -fno-exceptions -fcxx-exceptions %s 2>&1 | FileCheck %s -check-prefix=ON2
8*f4a2713aSLionel Sambuc // ON2: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
9*f4a2713aSLionel Sambuc //
10*f4a2713aSLionel Sambuc // RUN: %clang -### -fno-cxx-exceptions -fexceptions %s 2>&1 | FileCheck %s -check-prefix=ON3
11*f4a2713aSLionel Sambuc // ON3: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
12*f4a2713aSLionel Sambuc //
13*f4a2713aSLionel Sambuc // RUN: %clang -### -fno-exceptions %s 2>&1 | FileCheck %s -check-prefix=OFF1
14*f4a2713aSLionel Sambuc // OFF1-NOT: "-cc1" {{.*}} "-fcxx-exceptions"
15*f4a2713aSLionel Sambuc //
16*f4a2713aSLionel Sambuc // RUN: %clang -### -fno-cxx-exceptions %s 2>&1 | FileCheck %s -check-prefix=OFF2
17*f4a2713aSLionel Sambuc // OFF2-NOT: "-cc1" {{.*}} "-fcxx-exceptions"
18*f4a2713aSLionel Sambuc //
19*f4a2713aSLionel Sambuc // RUN: %clang -### -fcxx-exceptions -fno-exceptions %s 2>&1 | FileCheck %s -check-prefix=OFF3
20*f4a2713aSLionel Sambuc // OFF3-NOT: "-cc1" {{.*}} "-fcxx-exceptions"
21*f4a2713aSLionel Sambuc //
22*f4a2713aSLionel Sambuc // RUN: %clang -### -fexceptions -fno-cxx-exceptions %s 2>&1 | FileCheck %s -check-prefix=OFF4
23*f4a2713aSLionel Sambuc // OFF4-NOT: "-cc1" {{.*}} "-fcxx-exceptions"
24