[Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (#113470)
[llvm-project.git] / clang / test / Driver / driver-only.c
blob067f174a3cf451f74305bd58541d64e04568a69a
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
4 // Check that -fdriver-only doesn't actually run the generated -cc1 job.
5 //
6 // RUN: %clang -c %s -o %t/a.o -fdriver-only
7 // RUN: not cat %t/a.o
9 // Check that -fdriver-only respects errors.
11 // RUN: not %clang -c %s -fdriver-only -target i386-apple-darwin9 -m32 -Xarch_i386 -o
13 // Check that -fdriver-only respects -v.
15 // RUN: %clang -c %s -fdriver-only -v 2>&1 | FileCheck %s --check-prefix=CHECK-V
16 // CHECK-V: {{.*}} "-cc1"
18 // RUN: %clang -c %s -fdriver-only 2>&1 | FileCheck %s --check-prefix=CHECK-NO-V --allow-empty
19 // CHECK-NO-V-NOT: {{.*}} "-cc1"