[CUDA] Report an error if code tries to mix incompatible CUDA attributes.
Summary: Thanks to jhen for helping me figure this out. Reviewers: tra, echristo Subscribers: jhen Differential Revision: http://reviews.llvm.org/D16129 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257554 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaDeclAttr.cpp 35 additions, 13 deletionslib/Sema/SemaDeclAttr.cpp
- test/SemaCUDA/Inputs/cuda.h 4 additions, 0 deletionstest/SemaCUDA/Inputs/cuda.h
- test/SemaCUDA/attributes-on-non-cuda.cu 2 additions, 1 deletiontest/SemaCUDA/attributes-on-non-cuda.cu
- test/SemaCUDA/bad-attributes.cu 49 additions, 0 deletionstest/SemaCUDA/bad-attributes.cu
Loading
Please register or sign in to comment