r181854 - Move a test that requires 64-bit mode to a separate test with a triple in
Richard Trieu
rtrieu at google.com
Tue May 14 17:44:06 PDT 2013
Author: rtrieu
Date: Tue May 14 19:44:06 2013
New Revision: 181854
URL: http://llvm.org/viewvc/llvm-project?rev=181854&view=rev
Log:
Move a test that requires 64-bit mode to a separate test with a triple in
the run line.
Added:
cfe/trunk/test/Sema/offsetof-64.c
Modified:
cfe/trunk/test/Sema/offsetof.c
Added: cfe/trunk/test/Sema/offsetof-64.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/offsetof-64.c?rev=181854&view=auto
==============================================================================
--- cfe/trunk/test/Sema/offsetof-64.c (added)
+++ cfe/trunk/test/Sema/offsetof-64.c Tue May 14 19:44:06 2013
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-linux-gnu
+// expected-no-diagnostics
+
+// PR15216
+// Don't crash when taking computing the offset of structs with large arrays.
+const unsigned long Size = (1l << 62);
+
+struct Chunk {
+ char padding[Size];
+ char more_padding[1][Size];
+ char data;
+};
+
+int test1 = __builtin_offsetof(struct Chunk, data);
+
Modified: cfe/trunk/test/Sema/offsetof.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/offsetof.c?rev=181854&r1=181853&r2=181854&view=diff
==============================================================================
--- cfe/trunk/test/Sema/offsetof.c (original)
+++ cfe/trunk/test/Sema/offsetof.c Tue May 14 19:44:06 2013
@@ -70,14 +70,3 @@ int test5() {
return __builtin_offsetof(Array, array[*(int*)0]); // expected-warning{{indirection of non-volatile null pointer}} expected-note{{__builtin_trap}}
}
-// PR15216
-// Don't crash when taking computing the offset of structs with large arrays.
-const unsigned long Size = (1l << 62);
-
-struct Chunk {
- char padding[Size];
- char more_padding[1][Size];
- char data;
-};
-
-int test6 = __builtin_offsetof(struct Chunk, data);
More information about the cfe-commits
mailing list