Skip to contentSkip to conversation

Test that causes sparse to hang

DISCUSSION Josh Triplett 2 participants 2 messages May 16, 2007 Sparse checker

lore
Share & tools
lore
#0 lore raw

While poking at the GCC testsuite, I found a source file that hangs Sparse. I cut it down to the following minimal test case:

#if L'\x1234' != 0x1234
#endif
#if ''
#endif

Documenting this on-list in case someone wants to look at it before I can get to it later.

- Josh Triplett

#1 lore raw
Quoted 10 lines · Josh Triplett

While poking at the GCC testsuite, I found a source file that hangs Sparse. I cut it down to the following minimal test case:

#if L'\x1234' != 0x1234
#endif
#if ''
#endif

Documenting this on-list in case someone wants to look at it before I can get to it later.

No wide characters, so don't expect the identical behaviour... Shouldn't hang, obviously. BTW, I wouldn't be too surprised if wide chars blow not only in preprocessor.