blob: 571c50d9f31268e26fb398b1cc8be4afed5aaf3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Test that -fms-anonymous-structs is a CC1-only option and is accepted by CC1 without error.
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
// CC1-OK-NOT: error: unknown argument
// Test that multiple occurrences are handled
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fms-anonymous-structs -fms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
// Test with other MS-related options
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fms-extensions -fms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
// Test that -fno-ms-anonymous-structs is accepted by CC1 without error.
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fno-ms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
// Test both orderings of using both the negative and positive forms.
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fms-anonymous-structs -fno-ms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
// RUN: %clang_cc1 -triple powerpc-ibm-aix -fno-ms-anonymous-structs -fms-anonymous-structs %s -fsyntax-only 2>&1 | \
// RUN: FileCheck --check-prefix=CC1-OK %s --allow-empty
|