Skip to content

Commit

Permalink
add test case for Issue 11237
Browse files Browse the repository at this point in the history
- fix OS name of linux in Makefile
  • Loading branch information
MartinNowak committed Nov 1, 2013
1 parent ac537e9 commit 77632a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Makefile
Expand Up @@ -61,7 +61,7 @@ ifeq (,$(OS))
OS:=osx
else
ifeq (Linux,$(OS))
OS:=posix
OS:=linux
else
ifeq (FreeBSD,$(OS))
OS:=freebsd
Expand Down
5 changes: 5 additions & 0 deletions test/compilable/extra-files/test11237.sh
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

if [[ $OS == linux || $OS == freebsd ]]; then
nm -S ${RESULTS_DIR}/compilable/test11237_0.o | grep "00010000 B _D9test112376Buffer6__initZ"
fi
4 changes: 4 additions & 0 deletions test/compilable/test11237.d
@@ -0,0 +1,4 @@
// PERMUTE_ARGS:
// POST_SCRIPT: compilable/extra-files/test11237.sh

struct Buffer { ubyte[64 * 1024] buffer; }

0 comments on commit 77632a6

Please sign in to comment.