diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-23 19:24:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-23 19:24:45 +0000 |
commit | 0116530ba22544a1256d70ba92f1b4670f75599b (patch) | |
tree | 2302777065e3f4a15b621b074443c486caeb6234 | |
parent | 22b52c984a4005dfd27b230a434f9e9cfef13aa3 (diff) | |
download | bcm5719-llvm-0116530ba22544a1256d70ba92f1b4670f75599b.tar.gz bcm5719-llvm-0116530ba22544a1256d70ba92f1b4670f75599b.zip |
Add a null pointer test in the type-convert-construct.cpp tests.
llvm-svn: 55247
-rw-r--r-- | clang/test/SemaCXX/type-convert-construct.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/type-convert-construct.cpp b/clang/test/SemaCXX/type-convert-construct.cpp index 4641718bde9..64115f97ca9 100644 --- a/clang/test/SemaCXX/type-convert-construct.cpp +++ b/clang/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; } |