]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/vaarg4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / vaarg4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg4.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg4.C
deleted file mode 100644 (file)
index 3b312ab..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-
-// Bug 845. We were treating __builtin_va_arg as a unary expr, not a primary,
-// and hence getting parse errors.
-
-typedef __builtin_va_list __gnuc_va_list;
-typedef __gnuc_va_list va_list;
-
-struct X { int y; };
-
-void func(va_list va)
-{
-  char* a = __builtin_va_arg(va, char**)[0];
-  int b = __builtin_va_arg(va, X*)->y;
-}