diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-19 04:25:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-19 04:25:59 +0000 |
commit | 24c46b3133b03e254877a680f92f035e56058a39 (patch) | |
tree | ac95a2d65b85834a3b45a4ddd3857a40dcc60190 /test/SemaCXX/enum.cpp | |
parent | bad351822117eaf280081494e3dbe4a06c0dbfcf (diff) |
Print the context of tag types as part of pretty-printing, e.g.,
struct N::M::foo
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/enum.cpp')
-rw-r--r-- | test/SemaCXX/enum.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/enum.cpp b/test/SemaCXX/enum.cpp index c7748c31ba..156dfd6208 100644 --- a/test/SemaCXX/enum.cpp +++ b/test/SemaCXX/enum.cpp @@ -32,9 +32,7 @@ struct s1 { enum e1 { YES, NO }; static enum e1 badfunc(struct s1 *q) { - // FIXME: the message below should probably give context information - // in those types. - return q->bar(); // expected-error{{incompatible type returning 'enum e1', expected 'enum e1'}} + return q->bar(); // expected-error{{incompatible type returning 'enum s1::e1', expected 'enum e1'}} } enum e2; // expected-error{{ISO C++ forbids forward references to 'enum' types}} |