File tree 2 files changed +3
-3
lines changed
cpp/cert/test/rules/DCL51-CPP
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- | test.cpp:18:7 :18:12 | tzname | The variable $@ reuses a reserved standard library name. | test.cpp:18:7 :18:12 | tzname | tzname |
1
+ | test.cpp:18:20 :18:25 | tzname | The variable $@ reuses a reserved standard library name. | test.cpp:18:20 :18:25 | tzname | tzname |
Original file line number Diff line number Diff line change 15
15
16
16
// int NULL = 0; // NON_COMPLIANT, but not supported by compilers in practice
17
17
18
- char * tzname [ 2 ]; // NON_COMPLIANT
18
+ namespace ns { int tzname = 0 ; } // NON_COMPLIANT
19
19
20
20
void min () {} // NON_COMPLIANT
21
21
@@ -48,4 +48,4 @@ void test_lambda(const int y) {
48
48
// Lambda generates a static function called `_FUN` when the lambda is
49
49
// converted to a function pointer
50
50
g ([](int x) { return x; }); // COMPLIANT - compiler generated
51
- }
51
+ }
You can’t perform that action at this time.
0 commit comments