From fe077fc141b1f376d48569db03ee121fa0c8a79e Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Tue, 4 Jan 2022 20:50:00 +0100 Subject: [PATCH] Add test for #10312 (#3673) --- test/testother.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/testother.cpp b/test/testother.cpp index 8806c8211..fdd12fa8b 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -1655,6 +1655,13 @@ private: "enum X { a, b, c };" "void foo(X x4){}\n"); ASSERT_EQUALS("", errout.str()); + + Settings settings1; + settings1.platform(Settings::Win64); + check("using ui64 = unsigned __int64;\n" + "ui64 Test(ui64 one, ui64 two) { return one + two; }\n", + /*filename*/ nullptr, /*experimental*/ false, /*inconclusive*/ true, /*runSimpleChecks*/ true, /*verbose*/ false, &settings1); + ASSERT_EQUALS("", errout.str()); } void passedByValue_nonConst() {