2013-09-20 Chung-Lin Tang <cltang@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / macscp1.c
index 40f1217b2d615dae11d70123627015bab1993ae2..09a4c0dd182d4c1fe404a8d7018dbe9ca40a60ef 100644 (file)
 #define FORTY_EIGHT 48
 #undef  FORTY_EIGHT
 
+struct outer
+{
+  struct fields
+  {
+    struct fault
+    {
+      int addr;
+    } fault;
+  } fields;
+};
+struct outer address;
+
+#define addr fields.fault.addr
+
 /* A macro named UNTIL_<func> is #defined until just before the
    definition of the function <func>.
 
@@ -75,9 +89,9 @@ macscp_expr (void)
 
   foo = 0;  /* set breakpoint here */
 #define MACRO_TO_EXPAND foo
-  foo = 1;
+  foo = 1;                     /* set second breakpoint here */
 #undef MACRO_TO_EXPAND
-  foo = 2;
+  foo = 2;                     /* stopping point for line test */
 }
 
 #define TWENTY_THREE 23
This page took 0.024432 seconds and 4 git commands to generate.