]> granicus.if.org Git - clang/commitdiff
Fix test to not force triple, and also to not need stdint.h.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 17 Feb 2010 19:26:59 +0000 (19:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 17 Feb 2010 19:26:59 +0000 (19:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96499 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/static-init.c

index 8011943755c0205cb4717b6ab55b57ad14b5b097..b4de92713b88370de215de4063c6f97927288432 100644 (file)
@@ -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}}