aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/eh/throw1.C
blob: 6a3cb2c35cae681eadc1114d6e9e50c24d4610f8 (plain)
1
2
3
4
5
6
7
8
9
class S  
{ 
public: 
  S(){} 
};  
  
int foo(char* m1) {  
  throw (m1 ? S() : S()); 
}