Check the output of this test.

llvm-svn: 105434
This commit is contained in:
Eli Friedman 2010-06-03 23:34:11 +00:00
parent 4e7bd4a8a1
commit 986b6ae96a
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm-only -verify
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// PR7291
struct Foo {
@ -10,3 +10,9 @@ struct Foo {
Foo::Foo(unsigned arg) : file_id(arg = 42)
{ }
// CHECK: define void @_ZN3FooC2Ej
// CHECK: [[ARG:%.*]] = alloca i32
// CHECK: store i32 42, i32* [[ARG]]
// CHECK: [[ARGVAL:%.*]] = load i32* [[ARG]]
// CHECK: store i32 [[ARGVAL]], i32* %{{.*}}
// CHECK: ret void