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 /test/CodeGenCXX/expr.cpp | |
parent | e60586297dbe976653d42f15ef2089a13c64d951 (diff) |
Improve test coverage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/expr.cpp')
-rw-r--r-- | test/CodeGenCXX/expr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |