xref: /llvm-project/clang/test/Driver/aix-err-options.c (revision f39c399d9d15efe8309d8aa3d0ecf62205e6c474)
1 // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -E -G 0 2>&1 %s | \
2 // RUN:   FileCheck --check-prefix=CHECK32 %s
3 // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -S -emit-llvm -G 0 2>&1 %s | \
4 // RUN:   FileCheck --check-prefix=CHECK32 %s
5 // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -c -G 0 2>&1 %s | \
6 // RUN:   FileCheck --check-prefix=CHECK32 %s
7 // RUN: touch %t.s %t.o
8 // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -c %t.s -G 0 2>&1 | FileCheck --check-prefix=CHECK32 %s
9 // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -o dummy.so %t.o -G 0 2>&1 | FileCheck --check-prefix=CHECK32 %s
10 
11 // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -E -G 0 2>&1 %s | \
12 // RUN:   FileCheck --check-prefix=CHECK64 %s
13 // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -S -emit-llvm -G 0 2>&1 %s | \
14 // RUN:   FileCheck --check-prefix=CHECK64 %s
15 // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -c -G 0 2>&1 %s | \
16 // RUN:   FileCheck --check-prefix=CHECK64 %s
17 // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -c %t.s -G 0 2>&1 | FileCheck --check-prefix=CHECK64 %s
18 // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -o dummy.so %t.o -G 0 2>&1 | FileCheck --check-prefix=CHECK64 %s
19 
20 // CHECK32: error: unsupported option '-G' for target 'powerpc-ibm-aix-xcoff'
21 // CHECK64: error: unsupported option '-G' for target 'powerpc64-ibm-aix-xcoff'
22