Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / error_annot_c_compiler.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2013 Alexis Laferrière <alexis.laf@xymus.net>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 #alt1# module error_annot_c_compiler_alt1 is cflags
18 #alt2# module error_annot_c_compiler_alt2 is cflags(foo("llvm-config"))
19 #alt3# module error_annot_c_compiler_alt3 is cflags(foo("llvm-config", "2nd arg"))
20 #alt4# module error_annot_c_compiler_alt4 is ldflags
21 #alt5# module error_annot_c_compiler_alt5 is cflags(exec("invalid-program"))
22 #alt6# module error_annot_c_compiler_alt6 is cflags(exec)
23
24 fun foo `{ printf("nothing...\n"); `}
25
26 foo