You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
363 B
18 lines
363 B
// expected-no-diagnostics
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fsyntax-only -fcuda-is-device -verify %s
|
|
|
|
#include "Inputs/cuda.h"
|
|
|
|
struct S {
|
|
__host__ ~S() {}
|
|
__device__ ~S() {}
|
|
};
|
|
|
|
__host__ __device__ void test() {
|
|
S s;
|
|
// This should not crash clang.
|
|
s.~S();
|
|
}
|