Sign in
llvm
/
llvm-project
/
refs/heads/users/vitalybuka/spr/instrprofiling-do-not-sanitize-pgo-instrumentation
/
.
/
clang
/
test
/
CodeGenCXX
/
attr-annotate-constructor.cpp
blob: 7a115137f1a6733d3b793aea580d2249d4d3c9f1 [
file
] [
log
] [
blame
]
// RUN: %clang %s -S -emit-llvm -target x86_64-unknown-linux -o -
// Test annotation attributes on constructors do not crash.
class
Foo
{
public
:
[[
clang
::
annotate
(
"test"
)]]
Foo
()
{}
};
Foo
foo
;