xfail this test since daniel turned off ipsccp
[oota-llvm.git] / test / FrontendC++ / integration-O2.cpp
1 // RUN: %llvmgxx %s -O2 -S -o - | FileCheck %s
2 // XFAIL: *
3
4 // This test verifies that we get expected codegen out of the -O2 optimization
5 // level from the full optimizer.
6
7
8
9 // Verify that ipsccp is running and can eliminate globals.
10 static int test1g = 42;
11 void test1f1() {
12   if (test1g == 0) test1g = 0;
13 }
14 int test1f2() {
15   return test1g;
16 }
17
18 // CHECK: @_Z7test1f2v()
19 // CHECK: entry:
20 // CHECK-NEXT: ret i32 42