diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 02:46:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 02:46:28 +0000 |
commit | f52697a589c1fdd0ff101c472b904d4546e1d373 (patch) | |
tree | 2788605c740d28dfddcf581398c001a819c38fff | |
parent | e60586297dbe976653d42f15ef2089a13c64d951 (diff) |
Improve test coverage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111712 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/exprs.c | 7 | ||||
-rw-r--r-- | test/CodeGenCXX/expr.cpp | 7 |
2 files changed, 14 insertions, 0 deletions
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; +} |