Fix some test-breaking that snuck into my previous commit

llvm-svn: 112460
This commit is contained in:
Alexis Hunt 2010-08-29 22:39:32 +00:00
parent ea05bf2259
commit 8591e9e06f
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ public:
/// makeUserDefinedLiteral - Set this token to be a user-defined literal /// makeUserDefinedLiteral - Set this token to be a user-defined literal
void makeUserDefinedLiteral(llvm::BumpPtrAllocator &Alloc) { void makeUserDefinedLiteral(llvm::BumpPtrAllocator &Alloc) {
PtrData = Alloc.Allocate(sizeof(UDLData), 4); PtrData = new (Alloc.Allocate(sizeof(UDLData), 4)) UDLData;
setFlag(UserDefinedLiteral); setFlag(UserDefinedLiteral);
} }

View File

@ -1,5 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
void operator "" (const char *); // expected-error {{expected identifier}} void operator "" (const char *); // expected-error {{expected identifier}}
void operator "k"_foo(const char *); // expected-error {{string literal after 'operator' must be '""'}} void operator "k" _foo(const char *); // expected-error {{string literal after 'operator' must be '""'}}
void operator ""_tester (const char *); void operator "" _tester (const char *);