commit | ad6c06c1b72193c7ac302ad5b1887d3cf0c0b161 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Feb 12 08:46:17 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Feb 12 08:46:17 2008 +0000 |
tree | 6d0e04fec3921dbf138670a0cd904ea8d67f9dfc | |
parent | fdd35d727f251c4d314521645534d80b38cf6ba3 [diff] [blame] |
Make typechecking for enum+int compatibility stricter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47005 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/conditional-expr.c b/test/Sema/conditional-expr.c index a24846a..813aaee 100644 --- a/test/Sema/conditional-expr.c +++ b/test/Sema/conditional-expr.c
@@ -27,5 +27,9 @@ int (*pf)[2]; int (*pv)[i]; pf = (i ? pf : pv); + + enum {xxx,yyy,zzz} e, *ee; + short x; + ee = ee ? &x : ee ? &i : &e; // expected-warning {{pointer type mismatch}} }