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 423328b commit 55962dcCopy full SHA for 55962dc
cpp/autosar/test/rules/A0-1-1/test.cpp
@@ -29,6 +29,18 @@ static void foo(B &b) noexcept {
29
b3->g();
30
}
31
32
+template <typename T> void test() {
33
+ T t;
34
+ t.g();
35
+}
36
+
37
+template <typename T> void call_test() {
38
+ // call it with type parameter B to trigger indexing
39
+ test<T>();
40
41
42
+void call_call_test() { call_test<B>(); }
43
44
int test_useless_assignment(int &x, int p) {
45
x = 0; // COMPLIANT - x is a reference parameter, so is visible by the caller
46
int y = 0; // NON_COMPLIANT - never used
0 commit comments