• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// -Wall -Werror
2#pragma version(1)
3#pragma rs java_package_name(all)
4
5#pragma rs reduce
6#pragma rs reduce(
7#pragma rs reduce (
8#pragma rs reduce(*
9#pragma rs reduce(foo
10#pragma rs reduce   (foo
11#pragma rs reduce(foo  )
12#pragma rs reduce(foo) initializer(
13#pragma rs reduce(foo) initializer(init)
14#pragma rs reduce(foo) initializer(init) accumulator(accum)
15#pragma rs reduce(foo) initializer(init2) accumulator(accum2)
16#pragma rs reduce(bar) accumulator(baccum) initializer(binit)
17#pragma rs reduce(baz) accumulator(baccum) initializer(binit) accumulator(baccum)
18#pragma rs reduce(baz) accumulator(baccum) initializer(binit) accumulator(baccum2)
19#pragma rs reduce(goo) something(wrong)
20#pragma rs reduce(goo) initializer(gi) accumulator(ga) (
21
22static void init(int *accum) { }
23static void accum(int *accum, int val) { }
24
25static void binit(int *accum) { }
26static void baccum(int *accum, int val) { }
27