Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / convergent.cl
blob1b7fda41fc0c8913fb86db92515f4314f88236d2
1 // RUN: %clang_cc1 -triple spir-unknown-unknown -fsyntax-only -verify %s
3 void f1(void) __attribute__((convergent));
5 void f2(void) __attribute__((convergent(1))); // expected-error {{'convergent' attribute takes no arguments}}
7 void f3(int a __attribute__((convergent))); // expected-warning {{'convergent' attribute only applies to functions}}
9 void f4(void) {
10 int var1 __attribute__((convergent)); // expected-warning {{'convergent' attribute only applies to functions}}