aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-09-30 01:13:08 +0200
committerTristan Gingold <tgingold@free.fr>2019-09-30 01:13:08 +0200
commit108c48221f7a367b2b33499b469eab0afcaafd43 (patch)
treeccd79dc03b6f6e743b8de9739a3a10487ac70f06
parente87a1678e51b22db4d153ed7237a4cfa76d6ee9e (diff)
downloadghdl-108c48221f7a367b2b33499b469eab0afcaafd43.tar.gz
ghdl-108c48221f7a367b2b33499b469eab0afcaafd43.tar.bz2
ghdl-108c48221f7a367b2b33499b469eab0afcaafd43.zip
testsuite/synth: add testcase for #948
-rw-r--r--testsuite/synth/aggr01/aggr02.vhdl1
-rw-r--r--testsuite/synth/issue948/ent.vhdl22
-rwxr-xr-xtestsuite/synth/issue948/testsuite.sh11
3 files changed, 33 insertions, 1 deletions
diff --git a/testsuite/synth/aggr01/aggr02.vhdl b/testsuite/synth/aggr01/aggr02.vhdl
index 82e83ff9c..8b117867b 100644
--- a/testsuite/synth/aggr01/aggr02.vhdl
+++ b/testsuite/synth/aggr01/aggr02.vhdl
@@ -17,4 +17,3 @@ architecture behav of aggr02 is
begin
b <= a and gen_mask (8);
end behav;
-
diff --git a/testsuite/synth/issue948/ent.vhdl b/testsuite/synth/issue948/ent.vhdl
new file mode 100644
index 000000000..a2f7aadb9
--- /dev/null
+++ b/testsuite/synth/issue948/ent.vhdl
@@ -0,0 +1,22 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity ent is
+ port (
+ i : in bit;
+ o : out bit
+ );
+end;
+
+architecture a of ent is
+ signal test : std_logic_vector(7 downto 0);
+ alias a : std_logic_vector(7 downto 0) is test;
+begin
+ process(i)
+ begin
+ if a = x"00" then
+ end if;
+
+ o <= i;
+ end process;
+end;
diff --git a/testsuite/synth/issue948/testsuite.sh b/testsuite/synth/issue948/testsuite.sh
new file mode 100755
index 000000000..54e687d28
--- /dev/null
+++ b/testsuite/synth/issue948/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for f in ent; do
+ synth $f.vhdl -e $f > syn_$f.vhdl
+# analyze syn_$f.vhdl
+done
+clean
+
+echo "Test successful"
195' href='#n195'>195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366