This commit is contained in:
chrchr-github 2021-11-17 19:29:21 +01:00 committed by GitHub
parent 51d0f128a5
commit 80578c3504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1510,6 +1510,9 @@ private:
check("int f(int x) { if (x) return 1; else return bar({1}, {}); }");
ASSERT_EQUALS("", errout.str());
check("auto f() -> void {}"); // #10342
ASSERT_EQUALS("", errout.str());
}
// NRVO check