From 6f222e4d1f4bf597a4fc6a35dac27b526fa52904 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sun, 31 Aug 2014 19:58:03 +0200 Subject: [PATCH] Added unit test for #5534. --- test/testother.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/testother.cpp b/test/testother.cpp index b7280bb65..989b16cab 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -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() {