xref: /llvm-project/clang/test/Driver/aix-err-options.c (revision f39c399d9d15efe8309d8aa3d0ecf62205e6c474)
1*f39c399dSFangrui Song // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -E -G 0 2>&1 %s | \
20ba98433SXiangling Liao // RUN:   FileCheck --check-prefix=CHECK32 %s
3*f39c399dSFangrui Song // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -S -emit-llvm -G 0 2>&1 %s | \
43d4aebbbSXiangling Liao // RUN:   FileCheck --check-prefix=CHECK32 %s
5*f39c399dSFangrui Song // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -c -G 0 2>&1 %s | \
63d4aebbbSXiangling Liao // RUN:   FileCheck --check-prefix=CHECK32 %s
7cd18efb6SFangrui Song // RUN: touch %t.s %t.o
8*f39c399dSFangrui Song // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -c %t.s -G 0 2>&1 | FileCheck --check-prefix=CHECK32 %s
9*f39c399dSFangrui Song // RUN: not %clang --target=powerpc-ibm-aix-xcoff -### -o dummy.so %t.o -G 0 2>&1 | FileCheck --check-prefix=CHECK32 %s
103d4aebbbSXiangling Liao 
11*f39c399dSFangrui Song // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -E -G 0 2>&1 %s | \
123d4aebbbSXiangling Liao // RUN:   FileCheck --check-prefix=CHECK64 %s
13*f39c399dSFangrui Song // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -S -emit-llvm -G 0 2>&1 %s | \
140ba98433SXiangling Liao // RUN:   FileCheck --check-prefix=CHECK64 %s
15*f39c399dSFangrui Song // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -c -G 0 2>&1 %s | \
163d4aebbbSXiangling Liao // RUN:   FileCheck --check-prefix=CHECK64 %s
17*f39c399dSFangrui Song // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -c %t.s -G 0 2>&1 | FileCheck --check-prefix=CHECK64 %s
18*f39c399dSFangrui Song // RUN: not %clang --target=powerpc64-ibm-aix-xcoff -### -o dummy.so %t.o -G 0 2>&1 | FileCheck --check-prefix=CHECK64 %s
190ba98433SXiangling Liao 
203d4aebbbSXiangling Liao // CHECK32: error: unsupported option '-G' for target 'powerpc-ibm-aix-xcoff'
210ba98433SXiangling Liao // CHECK64: error: unsupported option '-G' for target 'powerpc64-ibm-aix-xcoff'
22