Changeset ee858bf for tests/init1.cfa
- Timestamp:
- Oct 9, 2020, 11:22:58 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a33704d
- Parents:
- 04423b53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/init1.cfa
r04423b53 ree858bf 9 9 // Author : Michael Brooks 10 10 // Created On : Thu Jul 16 22:00:00 2020 11 // Last Modified By : Michael Brooks12 // Last Modified On : Thu Jul 16 22:00:00202013 // Update Count : 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Oct 9 23:11:02 2020 13 // Update Count : 5 14 14 // 15 15 … … 41 41 const float * cpx2 = cpx; 42 42 43 int (* fp)( int ) = 0p; 44 fp = 0p; 45 43 46 // 44 47 // unsound initializations 45 48 // 46 49 50 #ifdef ERR1 47 51 // mismatched referenced type 48 52 int & ry = rx; … … 52 56 float & ry2 = crx; 53 57 float * py2 = cpx; 58 #endif // ERR1 54 59 } 55 60 … … 90 95 // 91 96 97 #ifdef ERR1 92 98 int & f_ry() { 93 99 float & rx = *0p; … … 119 125 return s; // mismatched referenced type 120 126 } 127 #endif // ERR1 128 129 int main() { 130 #pragma message( "Compiled" ) // force non-empty .expect file 131 }
Note: See TracChangeset
for help on using the changeset viewer.