xref: /llvm-project/clang/test/Driver/no-action.c (revision 9272aa9d08cbbf5b8612c264d5d547fdefae26c7)
1 // RUN: %clang --target=aarch64-none-gnu --verbose -mcpu= -march= 2>&1 | FileCheck %s --check-prefix=WARNING
2 // RUN: %clang --target=aarch64-none-gnu -### -mcpu= -march= 2>&1 | FileCheck %s --check-prefix=WARNING
3 
4 // RUN: %clang --target=x86_64-unknown-linux-gnu --verbose -mcpu= -march= 2>&1 | FileCheck %s --check-prefix=WARNING
5 // RUN: %clang --target=x86_64-unknown-linux-gnu -### -mcpu= -march= 2>&1 | FileCheck %s --check-prefix=WARNING
6 
7 /// In situation when there is no compilation/linking clang should not emit error
8 /// about target specific options, but just warn that are not used.
9 WARNING: warning: argument unused during compilation
10 WARNING: warning: argument unused during compilation
11