aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p6058.C
blob: 1c0c6224ebc7235893b2085405a4f7da38c602f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link:
// Special g++ Options: -fexceptions -pedantic-errors
// prms-id: 6058

void bar(struct s1 { } a) { (void)a; }			// ERROR - 

struct s2*fooey()
{
  try {
    static_cast<struct s3 { } *>(0);			// ERROR - 
    const_cast<struct s4 { } *>((s4*)0);		// ERROR - 
    reinterpret_cast<struct s5 { } *>((s3*)0);		// ERROR - 
    dynamic_cast<struct s6 { } *>((s6*)0);		// ERROR - 
    (struct s7 { } *)(int*)0xffedec;			// ERROR - 
  } catch (struct s8 { } s) {				// ERROR - 
  }
  return 0;
}