blob: 261f9653461d63271201f9db4acdda4fe7334a8b [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only -std=c++14 -emit-llvm -g %s -o - | FileCheck %s
2
Stephen Hines0e2c34f2015-03-23 12:09:02 -07003// CHECK: [[EMPTY:![0-9]*]] = !{}
4// CHECK: \00foo\00{{.*}}, [[EMPTY]], {{.*}}} ; [ DW_TAG_structure_type ]
Stephen Hines176edba2014-12-01 14:53:08 -08005// FIXME: The context of this definition should be the CU/file scope, not the class.
Stephen Hines0e2c34f2015-03-23 12:09:02 -07006// CHECK: !"_ZTS3foo", [[SUBROUTINE_TYPE:![0-9]*]], {{.*}}, [[FUNC_DECL:![0-9]*]], {{![0-9]*}}} ; [ DW_TAG_subprogram ] {{.*}} [def] [func]
7// CHECK: [[SUBROUTINE_TYPE]] = {{.*}}, [[TYPE_LIST:![0-9]*]],
8// CHECK: [[TYPE_LIST]] = !{[[INT:![0-9]*]]}
Stephen Hines176edba2014-12-01 14:53:08 -08009// CHECK: [[INT]] = {{.*}} ; [ DW_TAG_base_type ] [int]
Stephen Hines0e2c34f2015-03-23 12:09:02 -070010// CHECK: [[FUNC_DECL]] = {{.*}}, !"_ZTS3foo", [[SUBROUTINE_TYPE]], {{.*}}} ; [ DW_TAG_subprogram ] {{.*}} [func]
David Blaikie91296482013-05-24 21:24:35 +000011
12struct foo {
Stephen Hines176edba2014-12-01 14:53:08 -080013 static auto func();
David Blaikie91296482013-05-24 21:24:35 +000014};
15
16foo f;
Stephen Hines176edba2014-12-01 14:53:08 -080017
18auto foo::func() {
19 return 1;
20}