Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / va_arg.c
blob2bbf3c5ebd75a353cdaa9629e3be67f1e63d23d4
1 // Test this without pch.
2 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o -
3 // REQUIRES: x86-registered-target
5 // Test with pch.
6 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -o %t %S/va_arg.h
7 // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -emit-llvm -o -
9 char *g0(char** argv, int argc) { return argv[argc]; }
11 char *g(char **argv) {
12 f(g0, argv, 1, 2, 3);
15 char *i0(char **argv, int argc) { return argv[argc]; }
17 char *i(char **argv) {
18 h(i0, argv, 1, 2, 3);