[cfe-commits] r55247 - /cfe/trunk/test/SemaCXX/type-convert-construct.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Sat Aug 23 12:24:45 PDT 2008
Author: akirtzidis
Date: Sat Aug 23 14:24:45 2008
New Revision: 55247
URL: http://llvm.org/viewvc/llvm-project?rev=55247&view=rev
Log:
Add a null pointer test in the type-convert-construct.cpp tests.
Modified:
cfe/trunk/test/SemaCXX/type-convert-construct.cpp
Modified: cfe/trunk/test/SemaCXX/type-convert-construct.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/type-convert-construct.cpp?rev=55247&r1=55246&r2=55247&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/type-convert-construct.cpp (original)
+++ cfe/trunk/test/SemaCXX/type-convert-construct.cpp Sat Aug 23 14:24:45 2008
@@ -7,4 +7,7 @@
int v3 = arr(); // expected-error {{array types cannot be value-initialized}}
int v4 = int();
int v5 = int; // expected-error {{expected '(' for function-style cast or type construction}}
+ typedef int T;
+ int *p;
+ bool v6 = T(0) == p;
}
More information about the cfe-commits
mailing list