Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / attr-error.c
blobce0e00c3c465b00ef991729d57248209cd1bbc78
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 __attribute__((error("oh no"))) void foo(void);
4 void bar(void) {
5 foo();
8 // CHECK: call void @foo(), !srcloc [[SRCLOC:![0-9]+]]
9 // CHECK: declare{{.*}} void @foo() [[ATTR:#[0-9]+]]
10 // CHECK: attributes [[ATTR]] = {{{.*}}"dontcall-error"="oh no"
11 // CHECK: [[SRCLOC]] = !{i64 {{[0-9]+}}}