Home | History | Annotate | Download | only in SemaCUDA
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 #include "Inputs/cuda.h"
      4 
      5 __attribute__((amdgpu_num_vgpr(64)))
      6 __global__ void test_num_vgpr() { } // expected-error {{'amdgpu_num_vgpr' attribute only applies to kernel functions}}
      7 
      8 __attribute__((amdgpu_num_sgpr(32)))
      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)))
     14 __global__ void test_num_vgpr_num_sgpr() { }
     15