diff options
author | Brad King <brad.king@kitware.com> | 2017-12-05 19:27:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-12-05 19:36:11 (GMT) |
commit | 1263a3a1a83ac160db9cc3ed9a4947c31a7bc95f (patch) | |
tree | 5ef188f9c6ffe7851ac3fecef2c42542c9b94825 /test/input | |
parent | 19165af5c5175d3ee10e7d76db8e205d1f6d6e6a (diff) | |
download | CastXML-1263a3a1a83ac160db9cc3ed9a4947c31a7bc95f.zip CastXML-1263a3a1a83ac160db9cc3ed9a4947c31a7bc95f.tar.gz CastXML-1263a3a1a83ac160db9cc3ed9a4947c31a7bc95f.tar.bz2 |
RunClang: Tolerate use of GNU builtin __has_unique_object_representations
The builtin is used by the GNU type_traits header in modes aware of
C++17, so we need to provide it in CastXML. LLVM/Clang SVN r316518
(implement __has_unique_object_representations, 2017-10-24), in
development of Clang 6, added this GNU builtin. For older versions of
LLVM/Clang, provide a minimum implementation that at least allows
`type_traits` to parse.
Fixes: #98
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/has_unique_object_representations.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/input/has_unique_object_representations.cxx b/test/input/has_unique_object_representations.cxx new file mode 100644 index 0000000..dd51343 --- /dev/null +++ b/test/input/has_unique_object_representations.cxx @@ -0,0 +1,3 @@ +template <bool> +struct Bool; +typedef Bool<__has_unique_object_representations(int)> BoolType; |