diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:02:29 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:02:29 -0400 |
commit | 6a45579dbbf991c0e12ce59958e3b533d19fc9d4 (patch) | |
tree | 83ad11d63c0a1d1c89b9469455ecbda4531fe6ac /glm-master/test/bug/bug_ms_vec_static.cpp | |
parent | cb868acadcae4e3f497ecdabeca507f3e73e01c7 (diff) |
rotating skyboxgit add -A
Diffstat (limited to 'glm-master/test/bug/bug_ms_vec_static.cpp')
-rw-r--r-- | glm-master/test/bug/bug_ms_vec_static.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/glm-master/test/bug/bug_ms_vec_static.cpp b/glm-master/test/bug/bug_ms_vec_static.cpp new file mode 100644 index 0000000..7f44e40 --- /dev/null +++ b/glm-master/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; +} |