Clang Project

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