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

Eli Friedman eli.friedman at gmail.com
Thu Feb 21 10:07:36 PST 2008


Author: efriedma
Date: Thu Feb 21 12:07:36 2008
New Revision: 47442

URL: http://llvm.org/viewvc/llvm-project?rev=47442&view=rev
Log:
Some const initializer tests for stuff I just committed.


Added:
    cfe/trunk/test/CodeGen/const-init.c

Added: cfe/trunk/test/CodeGen/const-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/const-init.c?rev=47442&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/const-init.c (added)
+++ cfe/trunk/test/CodeGen/const-init.c Thu Feb 21 12:07:36 2008
@@ -0,0 +1,13 @@
+// RUN: clang -emit-llvm %s
+
+#include <stdint.h>
+
+// Brace-enclosed string array initializers
+char a[] = { "asdf" };
+
+// Double-implicit-conversions of array/functions (not legal C, but
+// clang accepts it for gcc compat).
+intptr_t b = a;
+int c();
+void *d = c;
+intptr_t e = c;





More information about the cfe-commits mailing list