diff options
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; +} |