1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fcxx-exceptions -fexceptions %s -triple=i686-unknown-linux -emit-llvm -o - | FileCheck %s 2*f4a2713aSLionel Sambuc typedef int Array[10]; 3*f4a2713aSLionel Sambuc foo()4*f4a2713aSLionel Sambucvoid foo() throw (Array) { 5*f4a2713aSLionel Sambuc throw 0; 6*f4a2713aSLionel Sambuc // CHECK: landingpad 7*f4a2713aSLionel Sambuc // CHECK-NEXT: filter {{.*}} @_ZTIPi 8*f4a2713aSLionel Sambuc } 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc struct S { fooS11*f4a2713aSLionel Sambuc void foo() throw (S[10]) { 12*f4a2713aSLionel Sambuc throw 0; 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc }; 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc template <typename T> 17*f4a2713aSLionel Sambuc struct S2 { fooS218*f4a2713aSLionel Sambuc void foo() throw (T) { 19*f4a2713aSLionel Sambuc throw 0; 20*f4a2713aSLionel Sambuc } 21*f4a2713aSLionel Sambuc }; 22*f4a2713aSLionel Sambuc main()23*f4a2713aSLionel Sambucint main() { 24*f4a2713aSLionel Sambuc S s; 25*f4a2713aSLionel Sambuc s.foo(); 26*f4a2713aSLionel Sambuc // CHECK: landingpad 27*f4a2713aSLionel Sambuc // CHECK-NEXT: filter {{.*}} @_ZTIP1S 28*f4a2713aSLionel Sambuc 29*f4a2713aSLionel Sambuc S2 <int[10]> s2; 30*f4a2713aSLionel Sambuc s2.foo(); 31*f4a2713aSLionel Sambuc // CHECK: landingpad 32*f4a2713aSLionel Sambuc // CHECK-NEXT: filter {{.*}} @_ZTIPi 33*f4a2713aSLionel Sambuc } 34