Added unit test for #5534.

This commit is contained in:
PKEuS 2014-08-31 19:58:03 +02:00
parent b8918906e6
commit 6f222e4d1f
1 changed files with 9 additions and 0 deletions

View File

@ -1317,6 +1317,15 @@ private:
testPassedByValue("void log(const std::string& file, int line, const std::string& function, const std::string str, ...) {}");
ASSERT_EQUALS("", errout.str());
// #5534
testPassedByValue("struct float3 { };\n"
"typedef float3 vec;\n"
"class Plane {\n"
" vec Refract(vec &vec) const;\n"
" bool IntersectLinePlane(const vec &planeNormal);\n"
"}; ");
ASSERT_EQUALS("", errout.str());
}
void mathfunctionCall_sqrt() {