Changeset cbdf565
- Timestamp:
- Jul 23, 2018, 5:21:46 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 2514607d
- Parents:
- 552f5cb
- Location:
- src/tests
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Makefile.am
r552f5cb rcbdf565 44 44 TEST_FLAGS = $(if $(test), 2> $(test), ) 45 45 AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} 46 CC = ${abs_top_builddir}/src/driver/cfa -I${srcdir} 46 CC = ${abs_top_builddir}/src/driver/cfa -I${srcdir} -DIN_DIR="${srcdir}/.in/" 47 47 48 48 .PHONY : list -
src/tests/Makefile.in
r552f5cb rcbdf565 193 193 AWK = @AWK@ 194 194 BACKEND_CC = @BACKEND_CC@ 195 CC = ${abs_top_builddir}/src/driver/cfa -I${srcdir} 195 CC = ${abs_top_builddir}/src/driver/cfa -I${srcdir} -DIN_DIR="${srcdir}/.in/" 196 196 CCAS = @CCAS@ 197 197 CCASDEPMODE = @CCASDEPMODE@ -
src/tests/io2.c
r552f5cb rcbdf565 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // io2.c -- 8 // 6 // 7 // io2.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Mar 2 16:56:02 2016 … … 12 12 // Last Modified On : Thu May 24 21:17:41 2018 13 13 // Update Count : 103 14 // 14 // 15 15 16 16 #include <fstream> 17 18 #define xstr(s) str(s) 19 #define str(s) #s 17 20 18 21 int main() { … … 38 41 char s1[size], s2[size]; 39 42 40 ifstream in = { "io.data" }; // create / open file43 ifstream in = { xstr(IN_DIR) "io.data" }; // create / open file 41 44 42 45 sout | "input bacis types" | endl;
Note: See TracChangeset
for help on using the changeset viewer.