[cfe-commits] r50608 - /cfe/trunk/test/CodeGen/init.c

Chris Lattner sabre at nondot.org
Sat May 3 17:56:25 PDT 2008


Author: lattner
Date: Sat May  3 19:56:25 2008
New Revision: 50608

URL: http://llvm.org/viewvc/llvm-project?rev=50608&view=rev
Log:
add a testcase

Modified:
    cfe/trunk/test/CodeGen/init.c

Modified: cfe/trunk/test/CodeGen/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/init.c?rev=50608&r1=50607&r2=50608&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/init.c (original)
+++ cfe/trunk/test/CodeGen/init.c Sat May  3 19:56:25 2008
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm %s
+// RUN: clang -emit-llvm %s -o -
 void f1() {
   // Scalars in braces.
   int a = { 1 };
@@ -13,3 +13,11 @@
   int *e[3][3] = { {&a[1][1], &b[2][2]}, {&a[0][0], &b[1][1]} };
   char ext[3][3] = {".Y",".U",".V"};
 }
+
+typedef void (* F)(void);
+extern void foo(void);
+struct S { F f; };
+void f3() {
+  struct S a[1] = { { foo } };
+}
+





More information about the cfe-commits mailing list