aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/asm-function-17.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/asm-function-17.c')
-rw-r--r--gcc/testsuite/gcc.apple/asm-function-17.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/asm-function-17.c b/gcc/testsuite/gcc.apple/asm-function-17.c
new file mode 100644
index 00000000000..457b8836e5c
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/asm-function-17.c
@@ -0,0 +1,23 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target powerpc*-*-* } } */
+/* { dg-options "-fasm-blocks" } */
+
+typedef struct astruct {
+ int fieldy;
+ int fieldx;
+} atypedef;
+
+void fun2 ()
+{
+ register int R3 asm ("r3");
+ register int R4 asm ("r4");
+
+ asm {
+ stw R4, atypedef.fieldx(R3)
+ }
+}
+
+int main()
+{
+ return 0;
+}