Changes in tests/init1.cfa [30cf6b0:b81fd95]
- File:
-
- 1 edited
-
tests/init1.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/init1.cfa
r30cf6b0 rb81fd95 9 9 // Author : Michael Brooks 10 10 // Created On : Thu Jul 16 22:00:00 2020 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sun Oct 11 10:26:50 202013 // Update Count : 811 // Last Modified By : Michael Brooks 12 // Last Modified On : Thu Jul 16 22:00:00 2020 13 // Update Count : 1 14 14 // 15 15 … … 41 41 const float * cpx2 = cpx; 42 42 43 // FIX ME: Code gen not producing correct cast.44 #pragma GCC diagnostic push45 #pragma GCC diagnostic ignored "-Wincompatible-pointer-types"46 int (* fp)( int ) = 0p;47 fp = 0p;48 #pragma GCC diagnostic pop49 50 43 // 51 44 // unsound initializations 52 45 // 53 46 54 #ifdef ERR155 47 // mismatched referenced type 56 48 int & ry = rx; … … 60 52 float & ry2 = crx; 61 53 float * py2 = cpx; 62 #endif // ERR163 54 } 64 55 … … 99 90 // 100 91 101 #ifdef ERR1102 92 int & f_ry() { 103 93 float & rx = *0p; … … 129 119 return s; // mismatched referenced type 130 120 } 131 #endif // ERR1132 133 int main() {134 #pragma message( "Compiled" ) // force non-empty .expect file135 }
Note:
See TracChangeset
for help on using the changeset viewer.