mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
25 lines
550 B
D
25 lines
550 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/cppmangle.d(11): Error: expected valid identifier for C++ namespace but got `""`
|
|
fail_compilation/cppmangle.d(15): Error: expected valid identifier for C++ namespace but got `"0num"`
|
|
fail_compilation/cppmangle.d(19): Error: compile time string constant (or sequence) expected, not `2`
|
|
fail_compilation/cppmangle.d(23): Error: expected valid identifier for C++ namespace but got `"invalid@namespace"`
|
|
---
|
|
*/
|
|
|
|
extern(C++, "")
|
|
{
|
|
}
|
|
|
|
extern(C++, "0num")
|
|
{
|
|
}
|
|
|
|
extern(C++, 1+1)
|
|
{
|
|
}
|
|
|
|
extern(C++, "invalid@namespace")
|
|
{
|
|
}
|