[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / ignore-xcoff-visibility.cpp
blob12cd98f2e050ed5784848826c04f13cf6dbd3e61
1 // RUN: %clang -### -target powerpc-unknown-aix -mignore-xcoff-visibility -S %s 2> %t.log
2 // RUN: FileCheck -check-prefix=CHECK %s < %t.log
3 CHECK: {{.*}}clang{{.*}}" "-cc1"
4 CHECK: "-mignore-xcoff-visibility"
6 // RUN: not %clang -mignore-xcoff-visibility -target powerpc-unknown-linux %s 2>&1 | \
7 // RUN: FileCheck -check-prefix=ERROR %s
9 ERROR: unsupported option '-mignore-xcoff-visibility' for target 'powerpc-unknown-linux'