Fix some test-breaking that snuck into my previous commit
llvm-svn: 112460
This commit is contained in:
parent
ea05bf2259
commit
8591e9e06f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 *);
|
||||||
|
|
Loading…
Reference in New Issue