[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / incomplete-function-type-2.c
blob24e2c83d085d9cbb25ca543719afb12b0fd48e27
1 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
3 // PR14355: don't crash
4 // Keep this test in its own file because CodeGenTypes has global state.
5 // CHECK: define{{.*}} void @test10_foo({}* noundef %p1.coerce) [[NUW:#[0-9]+]] {
6 struct test10_B;
7 typedef struct test10_B test10_F3(double);
8 void test10_foo(test10_F3 p1);
9 struct test10_B test10_b(double);
10 void test10_bar(void) {
11 test10_foo(test10_b);
13 struct test10_B {};
14 void test10_foo(test10_F3 p1)
16 p1(0.0);
19 // CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} }