1 // Test for debug info for C++11 deleted member functions
3 //Supported: -O0, standalone DI
4 // RUN: %clang_cc1 -emit-llvm -triple x86_64-linux-gnu %s -o - \
5 // RUN: -O0 -disable-llvm-passes \
6 // RUN: -debug-info-kind=standalone \
7 // RUN: | FileCheck %s -check-prefix=ATTR
9 // ATTR: DISubprogram(name: "deleted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped,
10 // ATTR: DISubprogram(name: "deleted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagDeleted
11 // ATTR: DISubprogram(name: "operator=", linkageName: "_ZN7deletedaSERKS_", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagDeleted
12 // ATTR: DISubprogram(name: "deleted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagDeleted
13 // ATTR: DISubprogram(name: "operator=", linkageName: "_ZN7deletedaSEOS_", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagDeleted
14 // ATTR: DISubprogram(name: "func", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped | DIFlagRValueReference, spFlags: DISPFlagDeleted
15 // ATTR: DISubprogram(name: "bar", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped | DIFlagStaticMember, spFlags: DISPFlagDeleted
16 // ATTR: DISubprogram(name: "~deleted", {{.*}}, flags: DIFlagPublic | DIFlagPrototyped,
19 // Defaulted on purpose, so as to facilitate object creation
22 deleted(const deleted
&) = delete;
23 deleted
&operator=(const deleted
&) = delete;
25 deleted(deleted
&&) = delete;
26 deleted
&operator=(deleted
&&) = delete;
28 void func() && = delete;
29 static int bar() = delete;