Testcase for r103712.

llvm-svn: 103713
This commit is contained in:
Chandler Carruth 2010-05-13 12:04:17 +00:00
parent d102f2d5c5
commit 5cb1abc6db
1 changed files with 10 additions and 0 deletions

View File

@ -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')}}