1// RUN: %clang_cc1 %s -pedantic -verify -fsyntax-only 2 3struct C { 4 kernel void m(); //expected-error{{kernel functions cannot be class members}} 5}; 6 7template <typename T> 8kernel void templ(T par) { //expected-error{{kernel functions cannot be used in a template declaration, instantiation or specialization}} 9} 10 11template <int> 12kernel void bar(int par) { //expected-error{{kernel functions cannot be used in a template declaration, instantiation or specialization}} 13} 14 15kernel void foo(int); //expected-note{{previous declaration is here}} 16 17kernel void foo(float); //expected-error{{conflicting types for 'foo'}} 18