From c568f0a8c9f0aef00c770b494ee1ff3a89ab48de Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 22 May 2022 01:08:24 -0700 Subject: Changeset: 35 Fix missing sources in git submodules after migration to PlasticSCM --- 3rdparty/glm/source/test/bug/CMakeLists.txt | 1 + 3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 3rdparty/glm/source/test/bug/CMakeLists.txt create mode 100644 3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp (limited to '3rdparty/glm/source/test/bug') diff --git a/3rdparty/glm/source/test/bug/CMakeLists.txt b/3rdparty/glm/source/test/bug/CMakeLists.txt new file mode 100644 index 0000000..26e8569 --- /dev/null +++ b/3rdparty/glm/source/test/bug/CMakeLists.txt @@ -0,0 +1 @@ +glmCreateTestGTC(bug_ms_vec_static) diff --git a/3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp b/3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp new file mode 100644 index 0000000..7f44e40 --- /dev/null +++ b/3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp @@ -0,0 +1,31 @@ +#include + +#if GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE +struct vec2; + +struct _swizzle +{ + char _buffer[1]; +}; + +struct vec2 +{ + GLM_CONSTEXPR vec2() : + x(0), y(0) + {} + + union + { + struct { float x, y; }; + struct { _swizzle xx; }; + }; +}; +#endif + +// Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler. +// vec2 Bar; + +int main() +{ + return 0; +} -- cgit v1.2.3-70-g09d2