diff options
author | rtk0c <[email protected]> | 2022-05-22 01:08:24 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-22 01:08:24 -0700 |
commit | c568f0a8c9f0aef00c770b494ee1ff3a89ab48de (patch) | |
tree | 1dc1e69d796e635cdac6a4ef7e6d3a90ab1423c2 /3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp | |
parent | a5db6bd3cc4af5233010ff44d0572ddf98b43c9d (diff) |
Changeset: 35 Fix missing sources in git submodules after migration to PlasticSCM
Diffstat (limited to '3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp')
-rw-r--r-- | 3rdparty/glm/source/test/bug/bug_ms_vec_static.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
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 <glm/glm.hpp> + +#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; +} |