diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-09-01 16:29:06 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-09-01 16:29:06 +0000 |
| commit | ef2abedb8a769fd36f6bf297c7dca6ba0fd3671f (patch) | |
| tree | e9a6b5da4df35be0858459207ed982a777fd4d0a /test/Frontend/clang-abi-compat.cpp | |
| parent | a75fa8aaf2005c6cb7561a9aa5129a38075939a4 (diff) | |
Vendor import of clang release_50 branch r312293:vendor/clang/clang-release_50-r312293
Notes
svn path=/vendor/clang/dist/; revision=323090
svn path=/vendor/clang/clang-release_50-r312293/; revision=323091; tag=vendor/clang/clang-release_50-r312293
Diffstat (limited to 'test/Frontend/clang-abi-compat.cpp')
| -rw-r--r-- | test/Frontend/clang-abi-compat.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Frontend/clang-abi-compat.cpp b/test/Frontend/clang-abi-compat.cpp new file mode 100644 index 000000000000..7ee94646b6d7 --- /dev/null +++ b/test/Frontend/clang-abi-compat.cpp @@ -0,0 +1,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=8 %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 |
