From 2be9af95562beed66965b7ca731bd35df1de7711 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 13 Feb 2008 17:29:58 +0000 Subject: Fix a minor bug in isNullPointerConstant triggered by the linux tgmath.h. Note that there is another issue with tgmath.h, so mandel.c still doesn't work. llvm-svn: 47069 --- clang/test/Sema/conditional-expr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test') diff --git a/clang/test/Sema/conditional-expr.c b/clang/test/Sema/conditional-expr.c index 813aaee9d0d..a21914c6d5c 100644 --- a/clang/test/Sema/conditional-expr.c +++ b/clang/test/Sema/conditional-expr.c @@ -31,5 +31,8 @@ void foo() { enum {xxx,yyy,zzz} e, *ee; short x; ee = ee ? &x : ee ? &i : &e; // expected-warning {{pointer type mismatch}} + + typedef void *asdf; + *(0 ? (asdf) 0 : &x) = 10; } -- cgit v1.2.3