diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-17 22:58:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-17 22:58:34 +0000 |
commit | 10bd36882406cdf4805e35add1ce2f11ab9ae152 (patch) | |
tree | dadf16647fecd2e461b2b18ae40f77dac201905b /test/SemaCXX/conversion-function.cpp | |
parent | 34265e7133ad82148aa9b3ac097ed66728f4ff85 (diff) |
Eliminate all of the placeholder identifiers used for constructors,
destructors, and conversion functions. The placeholders were used to
work around the fact that the parser and some of Sema really wanted
declarators to have simple identifiers; now, the code that deals with
declarators will use DeclarationNames.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/conversion-function.cpp')
-rw-r--r-- | test/SemaCXX/conversion-function.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/conversion-function.cpp b/test/SemaCXX/conversion-function.cpp index 6450387b02..22ed411e64 100644 --- a/test/SemaCXX/conversion-function.cpp +++ b/test/SemaCXX/conversion-function.cpp @@ -15,6 +15,8 @@ public: operator int(); // expected-error{{conversion function must be a non-static member function}} +operator int; // expected-error{{'operator int' cannot be the name of a variable or data member}} + typedef int func_type(int); typedef int array_type[10]; |