llvm-project/clang/test/CodeGen/artificial.c

11 lines
292 B
C

// RUN: %clang_cc1 -triple=x86_64-unknown-linux-gnu -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
extern void foo(void);
// CHECK: !DISubprogram(name: "foo"
// CHECK-SAME: flags: DIFlagArtificial
inline void __attribute__((artificial)) foo(void) {}
void baz(void) {
foo();
}