xref: /llvm-project/clang/test/Frontend/invalid-target-feature.c (revision 910ad36e1a2592915b32941844cf089442972d7a)
1 // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature '' -target-feature m %s 2>&1 \
2 // RUN:    | FileCheck -check-prefix=NO_PREFIX %s
3 
4 // NO_PREFIX: warning: feature flag 'm' must start with either '+' to enable the feature or '-' to disable it; flag ignored [-Winvalid-command-line-argument]
5 
6 // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature '' -target-feature ' n' %s 2>&1 \
7 // RUN:    | FileCheck -check-prefix=NULL_PREFIX %s
8 
9 // NULL_PREFIX: warning: feature flag ' n' must start with either '+' to enable the feature or '-' to disable it; flag ignored [-Winvalid-command-line-argument]
10