11 lines · cpp
1// RUN: %clang %s -S -emit-llvm -target x86_64-unknown-linux -o -2 3// Test annotation attributes on constructors do not crash.4 5class Foo {6public:7 [[clang::annotate("test")]] Foo() {}8};9 10Foo foo;11 1// RUN: %clang %s -S -emit-llvm -target x86_64-unknown-linux -o -2 3// Test annotation attributes on constructors do not crash.4 5class Foo {6public:7 [[clang::annotate("test")]] Foo() {}8};9 10Foo foo;11