[cfe-commits] r103713 - /cfe/trunk/test/Misc/diag-aka-types.cpp
Chandler Carruth
chandlerc at gmail.com
Thu May 13 05:04:17 PDT 2010
Author: chandlerc
Date: Thu May 13 07:04:17 2010
New Revision: 103713
URL: http://llvm.org/viewvc/llvm-project?rev=103713&view=rev
Log:
Testcase for r103712.
Added:
cfe/trunk/test/Misc/diag-aka-types.cpp
Added: cfe/trunk/test/Misc/diag-aka-types.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/diag-aka-types.cpp?rev=103713&view=auto
==============================================================================
--- cfe/trunk/test/Misc/diag-aka-types.cpp (added)
+++ cfe/trunk/test/Misc/diag-aka-types.cpp Thu May 13 07:04:17 2010
@@ -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')}}
More information about the cfe-commits
mailing list