Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only // expected-no-diagnostics kernel void foo(global int a[], local int b[], constant int c[4]) { } void bar(global int a[], local int b[], constant int c[4], int d[]) { }