Ignore:
Timestamp:
Jan 12, 2016, 3:36:20 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
ebe9b3a
Parents:
b18b0b5 (diff), 61f9356 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/quoted_keyword.c

    rb18b0b5 r36874e4  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 27 18:27:26 2015
    13 // Update Count     : 2
     12// Last Modified On : Sun Jan  3 22:46:28 2016
     13// Update Count     : 7
    1414//
    1515
     16#include "fstream.h"
     17
    1618// test quoted keyword usage
    17 int `catch`;
     19int `catch` = 10;
    1820
    1921struct {
    2022        int `type`;
    2123        int `struct`;
    22 } st;
     24} st = { 10, 10 };
    2325
    2426typedef int `forall`;
    25 `forall` `throw`;
     27`forall` `throw` = 10;
    2628
    27 int foo() {
    28         int w = `catch` + st.`type` + st.`struct` + `throw`;
     29int main() {
     30        ofstream *sout = ofstream_stdout();
     31        sout | `catch` + st.`type` + st.`struct` + `throw` | endl;
    2932}
    3033
Note: See TracChangeset for help on using the changeset viewer.