Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
5c0646b98b203d105c10ad8cc11be11cc99a4218
/
.
/
test
/
Misc
/
diag-aka-types.cpp
blob: b1c94ff539e4b4367a16645c8f04291f41bc098f [
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{{'const foo_t' (aka 'const X')}}