source: tests/errors/declaration.cfa @ c8238c0

ADTast-experimental
Last change on this file since c8238c0 was 686cb63, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Added new tests for signature errors.
Moved several error tests to errors folder.
Moved tests with no expect to zombies folder.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 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// declarationErrors.cfa --
8//
9// Author           : Peter A. Buhr
10// Created On       : Wed Aug 17 08:23:43 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Tue Nov  6 17:52:47 2018
13// Update Count     : 32
14//
15
16static short int volatile static const x1;                              // duplicate static
17extern short int static volatile const x2;                              // multiple extern & static
18extern short int auto static volatile static extern const x3; // duplicate and multiple storage classes
19struct { int i; } const static volatile static x4;              // duplicate static
20struct { int i; } const static volatile const static volatile x5; // duplicate static & const & volatile
21typedef int Int;
22static Int volatile static const x6;                                    // duplicate static
23
24const static inline const volatile int f01();                   // duplicate const
25volatile inline const volatile static int f02();                // duplicate volatile
26const inline const volatile int static f03();                   // duplicate const
27volatile inline static const volatile int f04();                // duplicate volatile
28const static int const inline volatile f05();                   // duplicate const
29volatile int static const volatile inline f06();                // duplicate volatile
30const static const int volatile inline f07();                   // duplicate const
31volatile static const int inline const volatile f08();  // duplicate volatile
32
33volatile static const int inline const volatile f09();  // duplicate volatile
34_Atomic _Atomic _Atomic volatile restrict static const const int inline restrict const volatile f09();  // duplicate volatile
35
36//Dummy main
37int main(int argc, char const *argv[])
38{
39        return 0;
40}
41
42// Local Variables: //
43// tab-width: 4 //
44// compile-command: "cfa declarationErrors.cfa" //
45// End: //
Note: See TracBrowser for help on using the repository browser.