Skip to content

Commit

Permalink
Add test case for #351 (crash on parse failure for deriving clause)
Browse files Browse the repository at this point in the history
  • Loading branch information
anka-213 committed Sep 22, 2024
1 parent 407644c commit 740177d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/AllFailTests.agda
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ import Fail.NonCanonicalSuperclass
import Fail.Issue125
import Fail.Issue357a
import Fail.Issue357b
import Fail.DerivingParseFailure
6 changes: 6 additions & 0 deletions test/Fail/DerivingParseFailure.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Fail.DerivingParseFailure where

record Example : Set where
{-# COMPILE AGDA2HS Example deriving !& #-}
-- {-# COMPILE AGDA2HS Example deriving Show via Foo #-}
-- {-# COMPILE AGDA2HS Example deriving (Show, Eq, Ord) class #-}
2 changes: 2 additions & 0 deletions test/golden/DerivingParseFailure.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test/Fail/DerivingParseFailure.agda:4,1-44
Parse error: !&

0 comments on commit 740177d

Please sign in to comment.