From: Daniel Dunbar Date: Sat, 21 Aug 2010 02:46:28 +0000 (+0000) Subject: Improve test coverage. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f52697a589c1fdd0ff101c472b904d4546e1d373;p=clang Improve test coverage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111712 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/exprs.c b/test/CodeGen/exprs.c index 7cc1134077..c9978b8516 100644 --- a/test/CodeGen/exprs.c +++ b/test/CodeGen/exprs.c @@ -145,3 +145,10 @@ double f13(double X) { // CHECK: fsub double -0.0 return -X; } + +// Check operations on incomplete types. +struct s14; +void f14(struct s13 *a) { + (void) &*a; +} + diff --git a/test/CodeGenCXX/expr.cpp b/test/CodeGenCXX/expr.cpp index 775169d957..33e8e63de2 100644 --- a/test/CodeGenCXX/expr.cpp +++ b/test/CodeGenCXX/expr.cpp @@ -28,3 +28,10 @@ int test4() { test4A a; (a.j = 2) = 3; } + +// Incomplete type in conditional operator. +// Check operations on incomplete types. +struct s5; +struct s5 &f5_0(bool cond, struct s5 &a, struct s5 &b) { + return cond ? a : b; +}