]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/template/union1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / template / union1.C
diff --git a/gcc/testsuite/g++.dg/template/union1.C b/gcc/testsuite/g++.dg/template/union1.C
deleted file mode 100644 (file)
index 9019c38..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// { dg-do run }
-
-extern "C" void abort ();
-
-void g (char c) 
-{
-  if (c != 'a')
-    abort ();
-}
-
-void h (int i)
-{
-  if (i != 3)
-    abort ();
-}
-
-template <typename T> void f(T const &t)
-{
-    union { char c; T t_; };
-
-    c = 'a';
-    g (c);
-    t_ = 3;
-    h (t_);
-}
-
-int main () {
-  f (3);
-}