]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/debug-info-method.cpp
Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / debug-info-method.cpp
1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 -g %s -o - | FileCheck %s
2 // CHECK: !"_ZTS1A"} ; [ DW_TAG_class_type ] [A]
3 // CHECK: !"{{.*}}\00_ZN1A3fooEiS_3$_0\00{{.*}}", {{.*}} [protected]
4 // CHECK: ![[THISTYPE:[0-9]+]] = {{.*}} ; [ DW_TAG_pointer_type ] {{.*}} [artificial] [from _ZTS1A]
5 // CHECK: [ DW_TAG_ptr_to_member_type ] [line {{[0-9]+}}, size {{[1-9][0-9]+}}, align
6 // CHECK: {{.*}}![[MEMFUNTYPE:[0-9]+]], !{{.*}}} ; [ DW_TAG_ptr_to_member_type ] {{.*}} [from ]
7 // CHECK: ![[MEMFUNTYPE]] = {{.*}}![[MEMFUNARGS:[0-9]+]], null, null, null} ; [ DW_TAG_subroutine_type ] {{.*}} [from ]
8 // CHECK: ![[MEMFUNARGS]] = {{.*}}, ![[THISTYPE]],
9 // CHECK: !"0x101\00\00{{.*}}"{{.*}} DW_TAG_arg_variable
10 // CHECK: !"0x101\00\00{{.*}}"{{.*}} DW_TAG_arg_variable
11 // CHECK: !"0x101\00\00{{.*}}"{{.*}} DW_TAG_arg_variable
12 union {
13   int a;
14   float b;
15 } u;
16
17 class A {
18 protected:
19   void foo(int, A, decltype(u));
20 }; 
21
22 void A::foo(int, A, decltype(u)) {
23 }
24
25 A a;
26
27 int A::*x = 0;
28 int (A::*y)(int) = 0;