Skip to content

Commit 4bed9b6

Browse files
committed
Mark new test case constexpr
This is required to exclude it from the FunctionMissingConstexpr.ql query because it is not marked `constexpr`
1 parent 95f8fe2 commit 4bed9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/autosar/test/rules/A7-1-2/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class ExcludedCases {
208208

209209
constexpr int add(int x, int y) { return x + y; }
210210

211-
void fp_reported_in_466(int p) {
211+
constexpr void fp_reported_in_466(int p) {
212212
int x = add(1, 2); // NON_COMPLIANT
213213
int y = add(1, p); // COMPLIANT
214214
}

0 commit comments

Comments
 (0)