brintos

brintos / llvm-project-archived public Read only

0
0
Text · 345 B · 034ab78 Raw
12 lines · c
1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s2__attribute__((warning("oh no"))) void foo(void);3 4void bar(void) {5  foo();6}7 8// CHECK: call void @foo(), !srcloc [[SRCLOC:![0-9]+]]9// CHECK: declare{{.*}} void @foo() [[ATTR:#[0-9]+]]10// CHECK: attributes [[ATTR]] = {{{.*}}"dontcall-warn"="oh no"11// CHECK: [[SRCLOC]] = !{i64 {{[0-9]+}}}12