- Timestamp:
- May 25, 2022, 5:51:24 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- c3b9d639
- Parents:
- 5024df4
- Location:
- tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/quasiKeyword.txt
r5024df4 rc715e5f 1 quasiKeyword.cfa:5 4:25: warning: Compiled1 quasiKeyword.cfa:52:25: warning: Compiled -
tests/exceptions/defaults.cfa
r5024df4 rc715e5f 2 2 3 3 #include <string.h> 4 #include <exception.hfa>5 4 6 5 exception log_message { … … 8 7 }; 9 8 10 _EHM_DEFINE_COPY(log_message, ) 9 void copy(log_message * this, log_message * that) { 10 *this = *that; 11 } 12 11 13 const char * msg(log_message * this) { 12 14 return this->msg; 13 15 } 14 _EHM_VIRTUAL_TABLE(log_message, , log_vt); 16 17 const struct log_message_vtable log_vt @= { 18 .__cfavir_typeid : &__cfatid_log_message, 19 .size : sizeof(struct log_message), 20 .copy : copy, 21 .^?{} : ^?{}, 22 .msg : msg, 23 }; 15 24 16 25 // Logging messages don't have to be handled. -
tests/linking/exception-nothreads.cfa
r5024df4 rc715e5f 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 19 EHM_EXCEPTION(ping)();20 EHM_VIRTUAL_TABLE(ping, ping_vt);18 exception ping {}; 19 vtable(ping) ping_vt; 21 20 22 21 int main(void) { -
tests/linking/exception-withthreads.cfa
r5024df4 rc715e5f 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 #include "../exceptions/with-threads.hfa" 19 18 20 EHM_EXCEPTION(ping)();21 EHM_VIRTUAL_TABLE(ping, ping_vt);19 exception ping {}; 20 vtable(ping) ping_vt; 22 21 23 22 int main(void) { -
tests/quasiKeyword.cfa
r5024df4 rc715e5f 4 4 // quasiKeyword.cfa -- test that quasi-keywords can be used for variable and functions names, as well as keywords in 5 5 // control structures. 6 // 6 // 7 7 // Author : Peter A. Buhr 8 8 // Created On : Wed Feb 17 10:33:49 2021 … … 10 10 // Last Modified On : Sat Jun 5 10:07:59 2021 11 11 // Update Count : 8 12 // 12 // 13 13 14 #include <exception.hfa> 15 16 EHM_EXCEPTION( E )(); 14 exception E {}; 17 15 18 16 void catch( int i ) {} … … 49 47 } fixup ( E * ) { 50 48 } finally { 51 } 49 } 52 50 else catch = 3; 53 51
Note:
See TracChangeset
for help on using the changeset viewer.