Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
c12aaff2cbe5c24ce9bb1a4fc6f52f4c84eb1716
/
.
/
clang
/
test
/
SemaCXX
/
attr-cleanup.cpp
blob: 3ac8e817dc9e36ee33268e278799df4e7f3731ad [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-gcc-compat
namespace
N
{
void
c1
(
int
*
a
)
{}
}
void
t1
()
{
int
v1 __attribute__
((
cleanup
(
N
::
c1
)));
int
v2 __attribute__
((
cleanup
(
N
::
c2
)));
// expected-error {{no member named 'c2' in namespace 'N'}}
}