We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c41e37 commit 556a757Copy full SHA for 556a757
cpp/autosar/test/rules/A0-1-1/test.cpp
@@ -31,8 +31,11 @@ static void foo(B &b) noexcept {
31
b4.g();
32
auto &b5 = *new B();
33
b5.g();
34
- auto &b5 = new B();
35
- b5.g();
+ /* Below causes a compile error (non-const reference when initialized should
+ * hold an lvalue)
36
+ */
37
+ // auto &b6 = new B();
38
+ // b6.g();
39
}
40
41
template <typename T> void test() {
0 commit comments