source: tests/include/stdincludes.cfa @ 8c2723f

Last change on this file since 8c2723f was 2853d6f, checked in by Michael Brooks <mlbrooks@…>, 4 months 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: 1.2 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// stdincludes.cfa --
8//
9// Author           : Peter A. Buhr
10// Created On       : Tue Aug 29 08:26:14 2017
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jun  5 10:08:11 2021
13// Update Count     : 9
14//
15
16// C11 standard headers
17
18#include <assert.h>
19#include <complex.h>
20#include <ctype.h>
21#include <errno.h>
22#include <fenv.h>
23#include <float.h>
24#include <inttypes.h>
25//#include <iso646.h>                                                                           // does not exist on linux
26#include <limits.h>
27#include <locale.h>
28#include <malloc.h>                                                                             // extra
29#include <math.h>
30#include <setjmp.h>
31#include <signal.h>
32#include <stdalign.h>
33#include <stdarg.h>
34#include <stdatomic.h>
35#include <stdbool.h>
36#include <stddef.h>
37#include <stdint.h>
38#include <stdio.h>
39#include <stdlib.h>
40#include <stdnoreturn.h>
41#include <string.h>
42#include <tgmath.h>
43#include <time.h>
44#include <uchar.h>
45#include <unistd.h>                                                                             // extra
46#include <wchar.h>
47#include <wctype.h>
48
49int main() {
50    printf("done\n");
51}
52
53// Local Variables: //
54// tab-width: 4 //
55// compile-command: "cfa stdincludes.cfa" //
56// End: //
Note: See TracBrowser for help on using the repository browser.