[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / call-arg-zero-temp.cpp
blobbeef2fd94a234c26adab20f0d78efc3491451293
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -S %s -o %t-64.s
3 // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
4 // RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s
5 // RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
8 extern "C" int printf(...);
10 struct obj{ int a; float b; double d; };
12 void foo(obj o) {
13 printf("%d %f %f\n", o.a, o.b, o.d);
16 int main() {
17 obj o = obj();
18 foo(obj());
21 // CHECK-LP64: callq __Z3foo3obj
23 // CHECK-LP32: calll __Z3foo3obj