aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-ctor.cpp
blob: 562b8081c4d4cfcdb9a0df9cd241d773486f4f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang -march=x86_64-apple-darwin10 -emit-llvm -g -S %s -o - | FileCheck %s

struct X {
  X(int v);

  int value;
};

X::X(int v) {
  // CHECK: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg
  value = v;
}