diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-06 00:09:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-06 00:09:31 +0000 |
commit | 56fc0d18caf9c829647a5e3ce35197f0d7e0feee (patch) | |
tree | 2122f22fde1b7e1c1a33fa3b7f27fcfac768d4c9 /test/CodeGenCXX | |
parent | 8cf7a1a6dd284a356d0cc69448e35f9b13a7b35a (diff) |
Refixed pr5086 by letting Expr::isNullPointerConstant
handle checking for a null pointer for a zero-valued
enumerator; moving the test case from CodeGen to Sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX')
-rw-r--r-- | test/CodeGenCXX/PR5086-ambig-resolution-enum.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/CodeGenCXX/PR5086-ambig-resolution-enum.cpp b/test/CodeGenCXX/PR5086-ambig-resolution-enum.cpp deleted file mode 100644 index 49bf7997b1..0000000000 --- a/test/CodeGenCXX/PR5086-ambig-resolution-enum.cpp +++ /dev/null @@ -1,21 +0,0 @@ -// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s && -// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s && -// RUN: clang-cc -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s && -// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s && -// RUN: true - -class UnicodeString { -public: - enum EInvariant { kInvariant }; - int extract(int targetCapacity, enum EInvariant inv) const; - int extract(unsigned targetLength, const char *codepage) const; -}; - -void foo(const UnicodeString& id) { - enum {BUFLEN = 128 }; - id.extract(BUFLEN - 2, UnicodeString::kInvariant); -} - -// CHECK-LP64: call __ZNK13UnicodeString7extractEiNS_10EInvariantE - -// CHECK-LP32: call L__ZNK13UnicodeString7extractEiNS_10EInvariantE |