Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,248
Issues
4,248
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c93e8668
Commit
c93e8668
authored
Jul 30, 2013
by
ian@well-typed.com
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for
#7835
parent
5970bafb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
0 deletions
+48
-0
testsuite/tests/driver/T7835/Makefile
testsuite/tests/driver/T7835/Makefile
+9
-0
testsuite/tests/driver/T7835/T7835.stdout
testsuite/tests/driver/T7835/T7835.stdout
+1
-0
testsuite/tests/driver/T7835/Test.hs
testsuite/tests/driver/T7835/Test.hs
+4
-0
testsuite/tests/driver/T7835/TestPrim.hs
testsuite/tests/driver/T7835/TestPrim.hs
+17
-0
testsuite/tests/driver/T7835/all.T
testsuite/tests/driver/T7835/all.T
+7
-0
testsuite/tests/driver/T7835/test-prims.cmm
testsuite/tests/driver/T7835/test-prims.cmm
+10
-0
No files found.
testsuite/tests/driver/T7835/Makefile
0 → 100644
View file @
c93e8668
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
T7835
:
$(RM)
Test Test.exe Test.hi Test.o TestPrim.hi TestPrim.o test-prims.o
"
$(TEST_HC)
"
$(TEST_HC_OPTS)
-v0
--make
Test test-prims.cmm
./Test
testsuite/tests/driver/T7835/T7835.stdout
0 → 100644
View file @
c93e8668
17
testsuite/tests/driver/T7835/Test.hs
0 → 100644
View file @
c93e8668
import
qualified
TestPrim
main
=
print
$
TestPrim
.
tpo
8
9
testsuite/tests/driver/T7835/TestPrim.hs
0 → 100644
View file @
c93e8668
{-# LANGUAGE GHCForeignImportPrim #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnliftedFFITypes #-}
{-# LANGUAGE NoImplicitPrelude #-}
module
TestPrim
(
tpo
#
,
tpo
)
where
import
GHC.Base
-- Int and I#
foreign
import
prim
"test_prim_op"
tpo
#
::
Int
#
->
Int
#
->
Int
#
tpo
::
Int
->
Int
->
Int
tpo
(
I
#
a
)
(
I
#
b
)
=
I
#
(
tpo
#
a
b
)
testsuite/tests/driver/T7835/all.T
0 → 100644
View file @
c93e8668
test
('
T7835
',
extra_clean
(['
Test
',
'
Test.exe
',
'
Test.hi
',
'
Test.o
',
'
TestPrim.hi
',
'
TestPrim.o
',
'
test-prims.o
']),
run_command
,
['
$MAKE -s --no-print-directory T7835
'])
testsuite/tests/driver/T7835/test-prims.cmm
0 → 100644
View file @
c93e8668
#include
"
Cmm.h
"
test_prim_op
(
W_
int1
,
W_
int2
)
{
W_
r
;
r
=
int1
+
int2
;
return
(
r
);
}
thomie
@trac-thomie
mentioned in issue
#7835 (closed)
·
Apr 14, 2013
mentioned in issue
#7835 (closed)
mentioned in issue #7835
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment