Last change
on this file since d96f7c4 was
2853d6f,
checked in by Michael Brooks <mlbrooks@…>, 3 weeks ago
|
Remove uses of warnings to show test success. Eliminate simple causes of other warnings from affected tests and remove the result from WFLAG_OPT_LAX.
Many affected tests also formerly used -fsyntax-only to avoid errors at later compilation stages, or at runtime. Repair such tests to actually work though runtime, and remove them from SYNTAX_ONLY_CODE.
Group tests listed under WFLAGS_OPT according to why they should receive lax treatment. Add reason WFLGAS_OPT_LAX_EXPECT_WARN and give the original list reason WFLGAS_OPT_LAX_TO_INVESTIGATE.
Tests whose purpose is to show a warning are listed as both SYNTAX_ONLY_CODE (so that the warning is the output) and WFLGAS_OPT_LAX_EXPECT_WARN (to document this fact).
|
-
Property mode set to
100644
|
File size:
287 bytes
|
Rev | Line | |
---|
[2853d6f] | 1 | // Is compiled -fsyntax-only, to make the test's "output" be the warnings from cfa-cpp. |
---|
| 2 | |
---|
[5ad24a2c] | 3 | |
---|
| 4 | int * store = 0p; |
---|
| 5 | |
---|
| 6 | __attribute__(( constructor(150) )) |
---|
| 7 | void ctor_store(void) { |
---|
[2853d6f] | 8 | store = (int*)malloc(200); |
---|
[5ad24a2c] | 9 | } |
---|
| 10 | |
---|
| 11 | __attribute__(( destructor(150) )) |
---|
| 12 | void dtor_store(void) { |
---|
| 13 | free(store); |
---|
| 14 | store = 0; |
---|
| 15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.