[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / merge-functions.cpp
blob892234ceedd3767bb0f6fe2b822b7067abdded05
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O0 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s -implicit-check-not=_ZN1A1gEiPi
3 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O1 -fmerge-functions -emit-llvm -o - -x c++ < %s | FileCheck %s -implicit-check-not=_ZN1A1gEiPi
5 // Basic functionality test. Function merging doesn't kick in on functions that
6 // are too simple.
8 struct A {
9 virtual int f(int x, int *p) { return x ? *p : 1; }
10 virtual int g(int x, int *p) { return x ? *p : 1; }
11 } a;
13 // CHECK: define {{.*}} @_ZN1A1fEiPi