ES-DE/test/bug/bug_ms_vec_static.cpp
Leon Styhre 0116f4b65d Squashed 'external/glm/' content from commit bf71a8349
git-subtree-dir: external/glm
git-subtree-split: bf71a834948186f4097caa076cd2663c69a10e1e
2021-08-13 15:26:10 +02:00

32 lines
411 B
C++

#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;
}