]> granicus.if.org Git - clang/commitdiff
Improve test coverage.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 21 Aug 2010 02:46:28 +0000 (02:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 21 Aug 2010 02:46:28 +0000 (02:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111712 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/exprs.c
test/CodeGenCXX/expr.cpp

index 7cc1134077ee6d53a70bf707423b895eb580380a..c9978b85164218d2adcf98941f5463f6d66e552f 100644 (file)
@@ -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;
+}
+
index 775169d9578bc804d24e0ef1f0744d7aae9e0008..33e8e63de2f4a52382ef30c49f2f558fa45fc234 100644 (file)
@@ -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;
+}