13 lines · plain
1// RUN: %clang_cc1 -triple spir-unknown-unknown -fsyntax-only -verify %s2 3void f1(void) __attribute__((convergent));4 5void f2(void) __attribute__((convergent(1))); // expected-error {{'convergent' attribute takes no arguments}}6 7void f3(int a __attribute__((convergent))); // expected-warning {{'convergent' attribute only applies to functions}}8 9void f4(void) {10 int var1 __attribute__((convergent)); // expected-warning {{'convergent' attribute only applies to functions}}11}12 13