diff options
Diffstat (limited to 'test/FrontendC/2002-07-31-SubregFailure.c')
-rw-r--r-- | test/FrontendC/2002-07-31-SubregFailure.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/FrontendC/2002-07-31-SubregFailure.c b/test/FrontendC/2002-07-31-SubregFailure.c new file mode 100644 index 0000000..72fcb49 --- /dev/null +++ b/test/FrontendC/2002-07-31-SubregFailure.c @@ -0,0 +1,14 @@ +// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null + + +typedef union { + long (*ap)[4]; +} ptrs; + +void DoAssignIteration() { + ptrs abase; + abase.ap+=27; + Assignment(*abase.ap); +} + + |