diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-02-12 08:46:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-02-12 08:46:17 +0000 |
commit | bab96968886f4b77083f4e26a28986ddb1e42d67 (patch) | |
tree | 6d0e04fec3921dbf138670a0cd904ea8d67f9dfc /test/Sema/conditional-expr.c | |
parent | fd888a581d6d329f5b447c8ff4d37cf396315993 (diff) |
Make typechecking for enum+int compatibility stricter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/conditional-expr.c')
-rw-r--r-- | test/Sema/conditional-expr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/conditional-expr.c b/test/Sema/conditional-expr.c index a24846ac1d..813aaee9d0 100644 --- a/test/Sema/conditional-expr.c +++ b/test/Sema/conditional-expr.c @@ -27,5 +27,9 @@ void foo() { 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}} } |