summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/ast-dump-hip-pinned-shadow.cu
blob: 53d7c8fbed8f468ef08b6a748fb5029a3d00717d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fcuda-is-device -ast-dump -ast-dump-filter tex -x hip %s | FileCheck -strict-whitespace %s
// RUN: %clang_cc1 -ast-dump -ast-dump-filter tex -x hip %s | FileCheck -strict-whitespace %s
struct textureReference {
  int a;
};

// CHECK: HIPPinnedShadowAttr
template <class T, int texType, int hipTextureReadMode>
struct texture : public textureReference {
texture() { a = 1; }
};

__attribute__((hip_pinned_shadow)) texture<float, 1, 1> tex;
OpenPOWER on IntegriCloud