MatsPetersson added inline comments. ================ Comment at: test/SemaOpenCL/invalid-func.cl:6 @@ +5,2 @@ +void foo(int, ...); // expected-error{{OpenCL does not allow variadic arguments}} +int printf(const char *, ...); ---------------- pekka.jaaskelainen wrote: > I wonder should we check for the fingerprint too when letting printf() pass? > This is not the correct OpenCL printf() as the first argument should be in > constant address space. Good spot, this should be fixed.
http://reviews.llvm.org/D16928 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits