diff options
Diffstat (limited to 'clang/test/Frontend/int128.cpp')
-rw-r--r-- | clang/test/Frontend/int128.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Frontend/int128.cpp b/clang/test/Frontend/int128.cpp new file mode 100644 index 00000000000..145144a03d6 --- /dev/null +++ b/clang/test/Frontend/int128.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -x c -std=gnu99 -dM -E -triple x86_64-pc-linux %s | FileCheck -check-prefix=NO %s +// RUN: %clang_cc1 -x c++ -std=c++11 -dM -E -triple x86_64-pc-linux %s | FileCheck -check-prefix=NO %s +// RUN: %clang_cc1 -x c++ -std=gnu++11 -dM -E -triple i686-pc-linux %s | FileCheck -check-prefix=NO %s +// RUN: %clang_cc1 -x c++ -std=gnu++11 -dM -E -triple x86_64-pc-linux %s | FileCheck -check-prefix=YES %s +// RUN: %clang_cc1 -x c++ -std=gnu++1y -dM -E -triple x86_64-pc-linux %s | FileCheck -check-prefix=YES %s +// PR23156 + +// NO-NOT: __GLIBCXX_TYPE_INT_N_0 +// NO-NOT: __GLIBCXX_BITSIZE_INT_N_0 +// YES-DAG: __GLIBCXX_TYPE_INT_N_0 +// YES-DAG: __GLIBCXX_BITSIZE_INT_N_0 |