1 // RUN: not %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu \
2 // RUN: -emit-llvm -o - %s 2>&1 | FileCheck %s
3 // RUN: not %clang_cc1 -std=c++11 -triple x86_64-unknown-linux-gnu \
4 // RUN: -fcuda-is-device -emit-llvm -o - %s 2>&1 \
7 // Check no crash due to deferred diagnostics.
9 #include "Inputs/cuda.h"
11 // CHECK: error: invalid output constraint '=h' in asm
12 // CHECK-NOT: core dump
13 inline __host__ __device__ int foo() {
15 __asm__("dont care" : "=h"(h) : "f"(0.0), "d"(0.0), "h"(0), "r"(0), "l"(0));
23 __global__ void kernel() {