diff options
author | Brad King <brad.king@kitware.com> | 2020-04-03 12:03:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-03 12:21:16 (GMT) |
commit | 4ef8cb855487f6a7b8673e771d26e55e0067be56 (patch) | |
tree | 9f8374c0ea9b177402591f1043047d3c990ba5d6 /test/input | |
parent | 365a07625e55f1eab0c45d0725ad5bccbf44292e (diff) | |
download | CastXML-4ef8cb855487f6a7b8673e771d26e55e0067be56.zip CastXML-4ef8cb855487f6a7b8673e771d26e55e0067be56.tar.gz CastXML-4ef8cb855487f6a7b8673e771d26e55e0067be56.tar.bz2 |
test: Add case for __builtin_assume_aligned declaration in MSVC header
In commit f9a05da6 (RunClang: Tolerate __builtin_assume_aligned
declaration in MSVC header, 2020-03-31, v0.3.2~1^2) we left out a test
case. Add one now.
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/assume_aligned.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/input/assume_aligned.cxx b/test/input/assume_aligned.cxx new file mode 100644 index 0000000..a6e9dc2 --- /dev/null +++ b/test/input/assume_aligned.cxx @@ -0,0 +1,8 @@ +constexpr void* __cdecl __builtin_assume_aligned(const void*, size_t, + ...) noexcept; + +int* check_assume_aligned(int* p) +{ + __builtin_assume_aligned(p, 4); + return p; +} |