mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
15 lines
390 B
D
15 lines
390 B
D
// Check that we can generate code for both the host and device in one compiler invocation
|
|
// REQUIRES: target_NVPTX
|
|
// RUN: %ldc -mdcompute-targets=cuda-350 -mdcompute-file-prefix=host_and_device -Iinputs %s %S/inputs/kernel.d
|
|
|
|
import inputs.kernel : foo;
|
|
|
|
int tlGlobal;
|
|
__gshared int gGlobal;
|
|
|
|
void main(string[] args)
|
|
{
|
|
tlGlobal = 0;
|
|
gGlobal = 0;
|
|
string s = foo.mangleof;
|
|
}
|