[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / exception-spec-decay.cpp
blob61d9d3df5175c88c9f2da5865d9259415a2a2f03
1 // RUN: %clang_cc1 %std_cxx98- -fcxx-exceptions -fexceptions -Wno-dynamic-exception-spec %s -triple=i686-unknown-linux -emit-llvm -o - | FileCheck %s
2 typedef int Array[10];
4 void foo() throw (Array) {
5 throw 0;
6 // CHECK: landingpad
7 // CHECK-NEXT: filter {{.*}} @_ZTIPi
10 struct S {
11 void foo() throw (S[10]) {
12 throw 0;
16 template <typename T>
17 struct S2 {
18 void foo() throw (T) {
19 throw 0;
23 int main() {
24 S s;
25 s.foo();
26 // CHECK: landingpad
27 // CHECK-NEXT: filter {{.*}} @_ZTIP1S
29 S2 <int[10]> s2;
30 s2.foo();
31 // CHECK: landingpad
32 // CHECK-NEXT: filter {{.*}} @_ZTIPi