summaryrefslogtreecommitdiff
path: root/test/Frontend/clang-abi-compat.cpp
blob: b7f2758a9db63e7ec03c6f6d1faf8bb04711a10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: not %clang_cc1 -fclang-abi-compat=banana %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=2.9 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=42 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=3.10 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=4.1 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=04 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=4. %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// RUN: not %clang_cc1 -fclang-abi-compat=4.00 %s -fsyntax-only 2>&1 | FileCheck --check-prefix=INVALID %s
// INVALID: error: invalid value '{{.*}}' in '-fclang-abi-compat={{.*}}'
//
// RUN: %clang_cc1 -fclang-abi-compat=3.0 %s -fsyntax-only
// RUN: %clang_cc1 -fclang-abi-compat=3.9 %s -fsyntax-only
// RUN: %clang_cc1 -fclang-abi-compat=4 %s -fsyntax-only
// RUN: %clang_cc1 -fclang-abi-compat=4.0 %s -fsyntax-only
// RUN: %clang_cc1 -fclang-abi-compat=latest %s -fsyntax-only