llvm-project/clang/test/CodeGen/attr-nouwtable.c
Fangrui Song c5de4dd1ea [test] %clang_cc1 -emit-llvm: remove redundant -S
And replace -emit-llvm -o - with -emit-llvm-only
2024-05-04 17:00:29 -07:00

10 lines
239 B
C

// RUN: %clang_cc1 -funwind-tables=2 -emit-llvm %s -o - | FileCheck %s
__attribute__((nouwtable))
int test1(void) { return 0; }
// CHECK: @test1{{.*}}[[ATTR1:#[0-9]+]]
// CHECK: attributes [[ATTR1]] = {
// CHECK-NOT: uwtable
// CHECK: }