Sign in
cobalt
/
cobalt
/
63c7ad499be49ef959b3b1c5ea3f48491aa033d3
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
Sema
/
cxx-as-c.c
blob: 41d7350d1f15eff74cf3b5a6a351e1a9fd2593a5 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -verify
// PR36157
struct
Foo
{
Foo
(
int
n
)
:
n_
(
n
)
{}
// expected-error 1+{{}} expected-warning 1+{{}}
private
:
int
n
;
};
int
main
()
{
Foo
f
;
}
// expected-error 1+{{}}