mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Tests that use -O1, -O2 and -O3 would often produce different results with the new pass manager which makes these tests fail. Disable new PM explicitly for these tests. Differential Revision: https://reviews.llvm.org/D58375 llvm-svn: 362580
13 lines
477 B
C++
13 lines
477 B
C++
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fno-experimental-new-pass-manager -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s -implicit-check-not=_ZN1A1gEiPi
|
|
|
|
// Basic functionality test. Function merging doesn't kick in on functions that
|
|
// are too simple.
|
|
|
|
struct A {
|
|
virtual int f(int x, int *p) { return x ? *p : 1; }
|
|
virtual int g(int x, int *p) { return x ? *p : 1; }
|
|
} a;
|
|
|
|
// CHECK: define {{.*}} @_ZN1A1fEiPi
|