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 bf6e11d commit 4c9f192Copy full SHA for 4c9f192
cpp/autosar/test/rules/A0-1-1/test.cpp
@@ -17,6 +17,18 @@ struct C {
17
int m;
18
};
19
20
+template <typename T> void test() {
21
+ T t;
22
+ t.g();
23
+}
24
+
25
+template <typename T> void call_test() {
26
+ // call it with type parameter B to trigger indexing
27
+ test<T>();
28
29
30
+void call_call_test() { call_test<B>(); }
31
32
int test_useless_assignment(int &x, int p) {
33
x = 0; // COMPLIANT - x is a reference parameter, so is visible by the caller
34
int y = 0; // NON_COMPLIANT - never used
0 commit comments