[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / constructor-default-arg.cpp
blob98a586494dd0b8a09637b9bb299db4e46ce8587c
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \
2 // RUN: FileCheck %s
3 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
4 // RUN: FileCheck %s
6 extern "C" int printf(...);
9 struct C {
10 C() : iC(6) {}
11 int iC;
14 int foo() {
15 return 6;
18 class X { // ...
19 public:
20 X(int) {}
21 X(const X&, int i = 1, int j = 2, int k = foo()) {
22 printf("X(const X&, %d, %d, %d)\n", i, j, k);
26 int main() {
27 X a(1);
28 X b(a, 2);
29 X c = b;
30 X d(a, 5, 6);
33 // CHECK: call void @_ZN1XC1ERKS_iii
34 // CHECK: call void @_ZN1XC1ERKS_iii
35 // CHECK: call void @_ZN1XC1ERKS_iii