Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6614b2d27df66cc72c7b088c19fcca54084e7ee5
/
.
/
test
/
Misc
/
diag-aka-types.cpp
blob: 7233c4e85b49998628faede7c66a3fa36b685ba2 [
file
] [
log
] [
blame
]
// 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')}}