From: Daniel Dunbar Date: Wed, 17 Feb 2010 19:26:59 +0000 (+0000) Subject: Fix test to not force triple, and also to not need stdint.h. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56bddeda24adcb927dd5ceafd75f84ebc2eb4203;p=clang Fix test to not force triple, and also to not need stdint.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96499 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/static-init.c b/test/Sema/static-init.c index 8011943755..b4de92713b 100644 --- a/test/Sema/static-init.c +++ b/test/Sema/static-init.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify %s -#include +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}}