]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/debug-info-method2.cpp
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / debug-info-method2.cpp
1 // RUN: %clang_cc1 -fno-standalone-debug -x c++ -g -S -emit-llvm < %s | FileCheck %s
2 // rdar://10336845
3 // Preserve type qualifiers in -flimit-debug-info mode.
4
5 // CHECK:  DW_TAG_const_type
6 class A {
7 public:
8   int bar(int arg) const;
9 };
10
11 int A::bar(int arg) const{
12   return arg+2;
13 }
14
15 int main() {
16   A a;
17   int i = a.bar(2);
18   return i;
19 }