[cfe-commits] r69758 - in /cfe/trunk/test/PCH: stmts.h types.c types.h
Douglas Gregor
dgregor at apple.com
Tue Apr 21 17:21:21 PDT 2009
Author: dgregor
Date: Tue Apr 21 19:21:21 2009
New Revision: 69758
URL: http://llvm.org/viewvc/llvm-project?rev=69758&view=rev
Log:
Test PCH support for VLAs
Modified:
cfe/trunk/test/PCH/stmts.h
cfe/trunk/test/PCH/types.c
cfe/trunk/test/PCH/types.h
Modified: cfe/trunk/test/PCH/stmts.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/stmts.h?rev=69758&r1=69757&r2=69758&view=diff
==============================================================================
--- cfe/trunk/test/PCH/stmts.h (original)
+++ cfe/trunk/test/PCH/stmts.h Tue Apr 21 19:21:21 2009
@@ -64,6 +64,9 @@
break;
}
+ // variable-length array
+ int array[x * 17 + 3];
+
return x*2;
}
Modified: cfe/trunk/test/PCH/types.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/types.c?rev=69758&r1=69757&r2=69758&view=diff
==============================================================================
--- cfe/trunk/test/PCH/types.c (original)
+++ cfe/trunk/test/PCH/types.c Tue Apr 21 19:21:21 2009
@@ -36,7 +36,7 @@
float_array fa1 = { 1, 2, 3 };
float_array fa2 = { 1, 2, 3, 4, 5, 6, 7, 8 };
-// FIXME: TYPE_VARIABLE_ARRAY
+// TYPE_VARIABLE_ARRAY in stmts.[ch]
// TYPE_VECTOR
float4 f4 = { 1.0, 2.0, 3.0, 4.0 };
Modified: cfe/trunk/test/PCH/types.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/types.h?rev=69758&r1=69757&r2=69758&view=diff
==============================================================================
--- cfe/trunk/test/PCH/types.h (original)
+++ cfe/trunk/test/PCH/types.h Tue Apr 21 19:21:21 2009
@@ -20,7 +20,7 @@
// TYPE_INCOMPLETE_ARRAY
typedef float float_array[];
-// FIXME: TYPE_VARIABLE_ARRAY
+// TYPE_VARIABLE_ARRAY in stmts.[ch]
// TYPE_VECTOR
typedef float float4 __attribute__((vector_size(16)));
More information about the cfe-commits
mailing list