1 // RUN: %clang_cc1 -triple x86_64-windows-msvc -debug-info-kind=limited -gcodeview -fdeclspec -S -emit-llvm < %s | FileCheck %s 2 3 struct Foo { 4 int x; 5 }; 6 7 __declspec(allocator) void *alloc_void(); 8 __declspec(allocator) struct Foo *alloc_foo(); 9 10 void call_alloc_void() { 11 struct Foo *p = (struct Foo*)alloc_void(); 12 } 13 14 void call_alloc_foo() { 15 struct Foo *p = alloc_foo(); 16 } 17 18 // CHECK-LABEL: define {{.*}}void @call_alloc_void 19 // CHECK: call i8* {{.*}}@alloc_void{{.*}} !heapallocsite [[DBG1:!.*]] 20 21 // CHECK-LABEL: define {{.*}}void @call_alloc_foo 22 // CHECK: call %struct.Foo* {{.*}}@alloc_foo{{.*}} !heapallocsite [[DBG2:!.*]] 23 24 // CHECK: [[DBG1]] = !{} 25 // CHECK: [[DBG2]] = distinct !DICompositeType(tag: DW_TAG_structure_type, 26 // CHECK-SAME: name: "Foo" 27 28