[cfe-commits] r96499 - /cfe/trunk/test/Sema/static-init.c

Daniel Dunbar daniel at zuster.org
Wed Feb 17 11:27:00 PST 2010


Author: ddunbar
Date: Wed Feb 17 13:26:59 2010
New Revision: 96499

URL: http://llvm.org/viewvc/llvm-project?rev=96499&view=rev
Log:
Fix test to not force triple, and also to not need stdint.h.

Modified:
    cfe/trunk/test/Sema/static-init.c

Modified: cfe/trunk/test/Sema/static-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/static-init.c?rev=96499&r1=96498&r2=96499&view=diff

==============================================================================
--- cfe/trunk/test/Sema/static-init.c (original)
+++ cfe/trunk/test/Sema/static-init.c Wed Feb 17 13:26:59 2010
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify %s
 
-#include <stdint.h>
+typedef __typeof((int*) 0 - (int*) 0) intptr_t;
 
 static int f = 10;
 static int b = f; // expected-error {{initializer element is not a compile-time constant}}





More information about the cfe-commits mailing list