| Justin Lebar | 2b42ccc | 2016-10-28 16:26:26 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |||||
| 3 | #include "Inputs/cuda.h" | ||||
| 4 | |||||
| 5 | // expected-no-diagnostics | ||||
| 6 | |||||
| 7 | // Check that we can handle gnu_inline functions when compiling in CUDA mode. | ||||
| 8 | |||||
| 9 | void foo(); | ||||
| 10 | inline __attribute__((gnu_inline)) void bar() { foo(); } | ||||