aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-05-13 12:04:17 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-05-13 12:04:17 +0000
commit6614b2d27df66cc72c7b088c19fcca54084e7ee5 (patch)
tree9a00e030f4844b5b51b696d3b070e39b608a3e7a
parent1733bc3747f242ddaea5b953d27f514253843e31 (diff)
Testcase for r103712.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103713 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Misc/diag-aka-types.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Misc/diag-aka-types.cpp b/test/Misc/diag-aka-types.cpp
new file mode 100644
index 0000000000..7233c4e85b
--- /dev/null
+++ b/test/Misc/diag-aka-types.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify
+
+struct X {};
+typedef X foo_t;
+
+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')}}