aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-23 19:24:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-08-23 19:24:45 +0000
commit2fba1217dc4c81064a8bf53e422d0924f141cd4b (patch)
treecca59829bc91ed1cfb4b88b40e7a9395c8731cab /test
parent15425f9d2d92e2a5f99b09b8e2fc00025631e593 (diff)
Add a null pointer test in the type-convert-construct.cpp tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaCXX/type-convert-construct.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/type-convert-construct.cpp b/test/SemaCXX/type-convert-construct.cpp
index 4641718bde..64115f97ca 100644
--- a/test/SemaCXX/type-convert-construct.cpp
+++ b/test/SemaCXX/type-convert-construct.cpp
@@ -7,4 +7,7 @@ void f() {
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;
}