blob: b696f77765ad850716ea4026cb033a315fc36381 [file] [log] [blame]
Eli Friedman84fd6df2012-11-15 23:40:48 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
2
3// PR14355: don't crash
4// Keep this test in its own file because CodeGenTypes has global state.
Bill Wendlingf7a9da02013-02-20 07:22:19 +00005// CHECK: define void @test10_foo({}* %p1.coerce) #0 {
Eli Friedman84fd6df2012-11-15 23:40:48 +00006struct test10_B;
7typedef struct test10_B test10_F3(double);
8void test10_foo(test10_F3 p1);
9struct test10_B test10_b(double);
10void test10_bar() {
11 test10_foo(test10_b);
12}
13struct test10_B {};
14void test10_foo(test10_F3 p1)
15{
16 p1(0.0);
17}
Bill Wendlingf7a9da02013-02-20 07:22:19 +000018
19// CHECK: attributes #0 = { nounwind "target-features"={{.*}} }