summaryrefslogtreecommitdiff
path: root/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248
diff options
context:
space:
mode:
authorDavid E. Box <david.e.box@linux.intel.com>2015-01-27 11:39:30 -0800
committerDavid E. Box <david.e.box@linux.intel.com>2015-01-27 11:39:30 -0800
commit6a13235548463f921b3d582109aecbae93391518 (patch)
tree17f96d505b88978e1d9bece37851a2232b73c2a2 /tests/aslts/src/runtime/collections/bdemo/ACPICA/0248
parent28a95326289ca5ee7cd95f8e8e809dc5564d9509 (diff)
downloadacpica-6a13235548463f921b3d582109aecbae93391518.tar.gz
Revert "source and test: update copyright notices to 2015"
This reverts commit 28a95326289ca5ee7cd95f8e8e809dc5564d9509. Commit mistakenly changes file format to CRLF from default LF.
Diffstat (limited to 'tests/aslts/src/runtime/collections/bdemo/ACPICA/0248')
-rw-r--r--tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl450
-rw-r--r--tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl110
-rw-r--r--tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl90
3 files changed, 325 insertions, 325 deletions
diff --git a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl
index b98381e45..e82112d16 100644
--- a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl
+++ b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/DECL.asl
@@ -1,225 +1,225 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Bug 248:
- *
- * SUMMARY: Incorrect ReferenceCount on Switch operation
- */
-
-Method(m02d)
-{
- /*
- * NoOp -
- * all them are for tracking only - to simplify debugging
- */
-
- Method(m003, 1, Serialized)
- {
- NoOp
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- Store("m003", debug)
- }
- }
-
- NoOp
- }
-
- Method(m004, 1)
- {
- NoOp
-
- if (arg0) {
- Store("m004", debug)
- }
-
- NoOp
- }
-
- Method(m1a8, 2)
- {
- if (arg1) {
- m003(arg0)
- } else {
- m004(arg0)
- }
- }
-
- Method(m1a9,, Serialized)
- {
- Name(sw00, 1)
- Name(hg00, 0) // if non-zero - the test hangs
-
- Name(p91e, Package() {0xabcd0000})
-
- if (1) {
- Store(Index(p91e, 0, Local1), Local0)
- } else {
- Store(0xabcd0000, Local0)
- Store(0xabcd0001, Local1)
- }
-
- if (LNotEqual(DerefOf(Local0), 0xabcd0000)) {
- err("", zFFF, 0x000, 0, 0, DerefOf(Local0), 0xabcd0000)
- }
-
- Store("============== sit 0 (Local0):", debug)
- m1a8(Local0, sw00)
-
- /*
- * At this point, after returning from m1a8
- * for the non-zero sw00, the object attached
- * to Local0 has been deleted. It is the essence
- * of the bug.
- */
-
- if (hg00) {
-
- /*
- * To show visually the consequences of the anomaly
- * run this code. It causes hang.
- */
-
- Store("============== sit 1 (Local1):", debug)
- m1a8(Local1, sw00)
-
- Store("============== sit 2:", debug)
-
- Store(ObjectType(Local0), Local7)
- Store(Local7, debug)
-
- Store(ObjectType(Local1), Local7)
- Store(Local7, debug)
-
- Store(Local0, debug)
- Store(Local1, debug)
- }
-
- Store("============== before checking:", debug)
-
- if (LNotEqual(DerefOf(Local0), 0xabcd0000)) {
- err("", zFFF, 0x001, 0, 0, DerefOf(Local0), 0xabcd0000)
- }
-
- Store("============== end of test", debug)
- }
-
- Method(mm00) {
- m1a9()
- }
-
- CH03("", 0, 0x002, 0, 0)
- mm00()
-
- /* Check opcode of the last exception */
- CH04("", 2, 47, 0, 0x003, 0, 0) // AE_AML_OPERAND_TYPE
-}
-
-/*
- * It is Functional:Reference:ref07.asl:Method(m1d5)
- */
-Method(m03d,, Serialized)
-{
- Name(i001, 0)
- Name(p000, Package(2) {0x77, 0x88})
-
- Name(sw00, 1)
-
- Name(hg00, 1) // if non-zero - the test hangs
- Name(hg01, 1) // if non-zero - the test hangs
- Name(hg02, 1) // if non-zero - the test hangs
-
- CH03("", 0, 184, 0, 0)
-
- CopyObject(Index(p000, 1, Local0), i001)
-
- CH03("", 0, 185, 0, 0)
-
- // Type of i001 should be already IRef here,
- // so, don't expect exception.
-
- Store(Index(p000, 0, Local0), i001)
-
- CH03("", 0, 186, 0, 0)
-
- Add(Local0, 1, Local7)
-
- if (y248) {
- Store(1, hg00)
- Store(1, hg01)
- Store(1, hg02)
- }
-
- /*
- * To show visually the consequences of the anomaly
- * run one of code below. They cause hang.
- */
- if (hg00) {
- // Infinite loop of printing
- Store(0, Local1)
- Store(Local0, debug)
- }
- if (hg01) {
- // Infinite loop of printing
- Store(Local0, debug)
- Store(Local0, debug)
- }
- if (hg02) {
- Store(0, Local1)
-
- Store("============== sit 2:", debug)
-
- Store(ObjectType(Local0), Local7)
- Store(Local7, debug)
- }
-
- CH04("", 0, 0xff, 0, 187, 0, 0)
-
- Add(i001, 1, Local7)
-
- CH04("", 0, 0xff, 0, 188, 0, 0)
-
- /*
- * Looks identical to b248: "Incorrect ReferenceCount on Switch operation"
- * (though there is no Switch operation)
- *
- * Reference count of Local0 is mistakenly zeroed there too.
- *
- * [ACPI Debug] String: [0x0F] "<-------- 0000>"
- * [ACPI Debug] Reference: [Debug]
- * [ACPI Debug] String: [0x0F] "<-------- 1111>"
- *
- * [ACPI Debug] String: [0x0F] "<-------- 0000>"
- * [ACPI Debug] [ACPI Debug] String: [0x0F] "<-------- 1111>"
- */
- Store("<-------- 0000>", debug)
- Store(Local0, debug)
- Store("<-------- 1111>", debug)
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Bug 248:
+ *
+ * SUMMARY: Incorrect ReferenceCount on Switch operation
+ */
+
+Method(m02d)
+{
+ /*
+ * NoOp -
+ * all them are for tracking only - to simplify debugging
+ */
+
+ Method(m003, 1, Serialized)
+ {
+ NoOp
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Store("m003", debug)
+ }
+ }
+
+ NoOp
+ }
+
+ Method(m004, 1)
+ {
+ NoOp
+
+ if (arg0) {
+ Store("m004", debug)
+ }
+
+ NoOp
+ }
+
+ Method(m1a8, 2)
+ {
+ if (arg1) {
+ m003(arg0)
+ } else {
+ m004(arg0)
+ }
+ }
+
+ Method(m1a9,, Serialized)
+ {
+ Name(sw00, 1)
+ Name(hg00, 0) // if non-zero - the test hangs
+
+ Name(p91e, Package() {0xabcd0000})
+
+ if (1) {
+ Store(Index(p91e, 0, Local1), Local0)
+ } else {
+ Store(0xabcd0000, Local0)
+ Store(0xabcd0001, Local1)
+ }
+
+ if (LNotEqual(DerefOf(Local0), 0xabcd0000)) {
+ err("", zFFF, 0x000, 0, 0, DerefOf(Local0), 0xabcd0000)
+ }
+
+ Store("============== sit 0 (Local0):", debug)
+ m1a8(Local0, sw00)
+
+ /*
+ * At this point, after returning from m1a8
+ * for the non-zero sw00, the object attached
+ * to Local0 has been deleted. It is the essence
+ * of the bug.
+ */
+
+ if (hg00) {
+
+ /*
+ * To show visually the consequences of the anomaly
+ * run this code. It causes hang.
+ */
+
+ Store("============== sit 1 (Local1):", debug)
+ m1a8(Local1, sw00)
+
+ Store("============== sit 2:", debug)
+
+ Store(ObjectType(Local0), Local7)
+ Store(Local7, debug)
+
+ Store(ObjectType(Local1), Local7)
+ Store(Local7, debug)
+
+ Store(Local0, debug)
+ Store(Local1, debug)
+ }
+
+ Store("============== before checking:", debug)
+
+ if (LNotEqual(DerefOf(Local0), 0xabcd0000)) {
+ err("", zFFF, 0x001, 0, 0, DerefOf(Local0), 0xabcd0000)
+ }
+
+ Store("============== end of test", debug)
+ }
+
+ Method(mm00) {
+ m1a9()
+ }
+
+ CH03("", 0, 0x002, 0, 0)
+ mm00()
+
+ /* Check opcode of the last exception */
+ CH04("", 2, 47, 0, 0x003, 0, 0) // AE_AML_OPERAND_TYPE
+}
+
+/*
+ * It is Functional:Reference:ref07.asl:Method(m1d5)
+ */
+Method(m03d,, Serialized)
+{
+ Name(i001, 0)
+ Name(p000, Package(2) {0x77, 0x88})
+
+ Name(sw00, 1)
+
+ Name(hg00, 1) // if non-zero - the test hangs
+ Name(hg01, 1) // if non-zero - the test hangs
+ Name(hg02, 1) // if non-zero - the test hangs
+
+ CH03("", 0, 184, 0, 0)
+
+ CopyObject(Index(p000, 1, Local0), i001)
+
+ CH03("", 0, 185, 0, 0)
+
+ // Type of i001 should be already IRef here,
+ // so, don't expect exception.
+
+ Store(Index(p000, 0, Local0), i001)
+
+ CH03("", 0, 186, 0, 0)
+
+ Add(Local0, 1, Local7)
+
+ if (y248) {
+ Store(1, hg00)
+ Store(1, hg01)
+ Store(1, hg02)
+ }
+
+ /*
+ * To show visually the consequences of the anomaly
+ * run one of code below. They cause hang.
+ */
+ if (hg00) {
+ // Infinite loop of printing
+ Store(0, Local1)
+ Store(Local0, debug)
+ }
+ if (hg01) {
+ // Infinite loop of printing
+ Store(Local0, debug)
+ Store(Local0, debug)
+ }
+ if (hg02) {
+ Store(0, Local1)
+
+ Store("============== sit 2:", debug)
+
+ Store(ObjectType(Local0), Local7)
+ Store(Local7, debug)
+ }
+
+ CH04("", 0, 0xff, 0, 187, 0, 0)
+
+ Add(i001, 1, Local7)
+
+ CH04("", 0, 0xff, 0, 188, 0, 0)
+
+ /*
+ * Looks identical to b248: "Incorrect ReferenceCount on Switch operation"
+ * (though there is no Switch operation)
+ *
+ * Reference count of Local0 is mistakenly zeroed there too.
+ *
+ * [ACPI Debug] String: [0x0F] "<-------- 0000>"
+ * [ACPI Debug] Reference: [Debug]
+ * [ACPI Debug] String: [0x0F] "<-------- 1111>"
+ *
+ * [ACPI Debug] String: [0x0F] "<-------- 0000>"
+ * [ACPI Debug] [ACPI Debug] String: [0x0F] "<-------- 1111>"
+ */
+ Store("<-------- 0000>", debug)
+ Store(Local0, debug)
+ Store("<-------- 1111>", debug)
+}
diff --git a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl
index 868b641ac..5f5b67a13 100644
--- a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl
+++ b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/MAIN.asl
@@ -1,55 +1,55 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-DefinitionBlock(
- "B248.aml", // Output filename
- "DSDT", // Signature
- 0x02, // DSDT Revision
- "Intel", // OEMID
- "Many", // TABLE ID
- 0x00000001 // OEM Revision
- ) {
-
- // All declarations
- Include("../../../../../runtime/cntl/DECL_5UP.asl")
- Include("../../../../../runtime/collections/bdemo/ACPICA/0248/DECL.asl")
-
- Method(MAIN) {
-
- // Initialization
- STRT(0)
-
- // Run verification methods
- Include("../../../../../runtime/collections/bdemo/ACPICA/0248/RUN.asl")
-
- // Final actions
- Store(FNSH(), Local7)
-
- return (Local7)
- }
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+DefinitionBlock(
+ "B248.aml", // Output filename
+ "DSDT", // Signature
+ 0x02, // DSDT Revision
+ "Intel", // OEMID
+ "Many", // TABLE ID
+ 0x00000001 // OEM Revision
+ ) {
+
+ // All declarations
+ Include("../../../../../runtime/cntl/DECL_5UP.asl")
+ Include("../../../../../runtime/collections/bdemo/ACPICA/0248/DECL.asl")
+
+ Method(MAIN) {
+
+ // Initialization
+ STRT(0)
+
+ // Run verification methods
+ Include("../../../../../runtime/collections/bdemo/ACPICA/0248/RUN.asl")
+
+ // Final actions
+ Store(FNSH(), Local7)
+
+ return (Local7)
+ }
+}
diff --git a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl
index 324f0bcb8..69504c606 100644
--- a/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl
+++ b/tests/aslts/src/runtime/collections/bdemo/ACPICA/0248/RUN.asl
@@ -1,45 +1,45 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-if (STTT("Demo of bug 248", TCLD, 248, W017)) {
- SRMT("m02d")
- if (y200) {
- m02d()
- } else {
- BLCK()
- }
-
- SRMT("m03d")
- if (y248) {
- m03d()
- } else {
- BLCK()
- }
-}
-FTTT()
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+if (STTT("Demo of bug 248", TCLD, 248, W017)) {
+ SRMT("m02d")
+ if (y200) {
+ m02d()
+ } else {
+ BLCK()
+ }
+
+ SRMT("m03d")
+ if (y248) {
+ m03d()
+ } else {
+ BLCK()
+ }
+}
+FTTT()
+