blob: 51d4093e7489f2bcf631da211d899001787d92e6 (
plain)
1
2
3
4
5
6
7
8
9
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{{'const foo_t' (aka 'X const')}}
|