Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / template / union1.C
blob9019c38a28543ea26a2809fb12bd3aaf47dfff34
1 // { dg-do run }
3 extern "C" void abort ();
5 void g (char c) 
7   if (c != 'a')
8     abort ();
11 void h (int i)
13   if (i != 3)
14     abort ();
17 template <typename T> void f(T const &t)
19     union { char c; T t_; };
21     c = 'a';
22     g (c);
23     t_ = 3;
24     h (t_);
27 int main () {
28   f (3);