1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 #include "Inputs/cuda.h" 4 5 __attribute__((amdgpu_num_vgpr(64))) test_num_vgpr()6__global__ void test_num_vgpr() { } // expected-error {{'amdgpu_num_vgpr' attribute only applies to kernel functions}} 7 8 __attribute__((amdgpu_num_sgpr(32))) test_num_sgpr()9__global__ void test_num_sgpr() { } // expected-error {{'amdgpu_num_sgpr' attribute only applies to kernel functions}} 10 11 // fixme-expected-error@+3 {{'amdgpu_num_sgpr' attribute only applies to kernel functions}} 12 // expected-error@+2 {{'amdgpu_num_vgpr' attribute only applies to kernel functions}} 13 __attribute__((amdgpu_num_sgpr(32), amdgpu_num_vgpr(64))) test_num_vgpr_num_sgpr()14__global__ void test_num_vgpr_num_sgpr() { } 15