summaryrefslogtreecommitdiffstats
path: root/test/Misc/diag-aka-types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/diag-aka-types.cpp')
-rw-r--r--test/Misc/diag-aka-types.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Misc/diag-aka-types.cpp b/test/Misc/diag-aka-types.cpp
index 7233c4e..e0e6b8c 100644
--- a/test/Misc/diag-aka-types.cpp
+++ b/test/Misc/diag-aka-types.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -fsyntax-only -verify
+// RUN: %clang_cc1 %s -fsyntax-only -verify -std=c++0x
struct X {};
typedef X foo_t;
@@ -7,4 +7,8 @@ foo_t *ptr;
char c1 = ptr; // expected-error{{'foo_t *' (aka 'X *')}}
const foo_t &ref = foo_t();
-char c2 = ref; // expected-error{{'foo_t const' (aka 'X const')}}
+char c2 = ref; // expected-error{{'const foo_t' (aka 'const X')}}
+
+// deduced auto should not produce an aka.
+auto aut = X();
+char c3 = aut; // expected-error{{from 'X' to 'char'}}
OpenPOWER on IntegriCloud