blob: cb66ba1127dbdb1d1f649360b844ca7279a55c2e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc -xc++ -S -o - %s | llvm-as | opt -die | llvm-dis | notcast
2
3struct A {
4 A() : i(0) {}
5 int getI() {return i;}
6 int i;
7};
8
9int f(int j)
10{
11 A a;
12 return j+a.getI();
13}