mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
20 lines
417 B
D
20 lines
417 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail20.d(17): Error: no operator `<` for type `FOO`
|
|
fail_compilation/fail20.d(11): perhaps overload it with `int opCmp(FOO other) const {}`
|
|
---
|
|
*/
|
|
|
|
// ICE(cod3) DMD0.080
|
|
|
|
struct FOO{}
|
|
|
|
void main()
|
|
{
|
|
FOO one;
|
|
FOO two;
|
|
if (one < two){} // This should tell me that there
|
|
// is no opCmp() defined instead
|
|
// of crashing.
|
|
}
|