brintos

brintos / llvm-project-archived public Read only

0
0
Text · 554 B · 4abed7e Raw
20 lines · c
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s2 3// PR14355: don't crash4// Keep this test in its own file because CodeGenTypes has global state.5// CHECK: define{{.*}} void @test10_foo(ptr noundef %p1) [[NUW:#[0-9]+]] {6struct test10_B;7typedef struct test10_B test10_F3(double);8void test10_foo(test10_F3 p1);9struct test10_B test10_b(double);10void test10_bar(void) {11  test10_foo(test10_b);12}13struct test10_B {};14void test10_foo(test10_F3 p1)15{16  p1(0.0);17}18 19// CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} }20