[cfe-commits] r111712 - in /cfe/trunk/test: CodeGen/exprs.c CodeGenCXX/expr.cpp
Daniel Dunbar
daniel at zuster.org
Fri Aug 20 19:46:28 PDT 2010
Author: ddunbar
Date: Fri Aug 20 21:46:28 2010
New Revision: 111712
URL: http://llvm.org/viewvc/llvm-project?rev=111712&view=rev
Log:
Improve test coverage.
Modified:
cfe/trunk/test/CodeGen/exprs.c
cfe/trunk/test/CodeGenCXX/expr.cpp
Modified: cfe/trunk/test/CodeGen/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/exprs.c?rev=111712&r1=111711&r2=111712&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/exprs.c (original)
+++ cfe/trunk/test/CodeGen/exprs.c Fri Aug 20 21:46:28 2010
@@ -145,3 +145,10 @@
// CHECK: fsub double -0.0
return -X;
}
+
+// Check operations on incomplete types.
+struct s14;
+void f14(struct s13 *a) {
+ (void) &*a;
+}
+
Modified: cfe/trunk/test/CodeGenCXX/expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/expr.cpp?rev=111712&r1=111711&r2=111712&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/expr.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/expr.cpp Fri Aug 20 21:46:28 2010
@@ -28,3 +28,10 @@
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;
+}
More information about the cfe-commits
mailing list