gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / namespace1.cc
index 2ce74a5533ad1e5ca8b5ce8311a3e7f0e45c581a..59ef3b7bde0f0a8744e371461050ebc8692c4e7c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2003, 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -21,7 +21,17 @@ namespace C
   class OtherFileClass {
   public:
     int z;
+
+    typedef short cOtherFileClassType;
+    typedef long cOtherFileClassType2;
+    static const cOtherFileClassType cOtherFileClassVar = 318;
+    static const cOtherFileClassType2 cOtherFileClassVar2 = 320;
+    cOtherFileClassType cOtherFileClassVar_use ();
   };
+  OtherFileClass::cOtherFileClassType OtherFileClass::cOtherFileClassVar_use ()
+  {
+    return cOtherFileClassVar + cOtherFileClassVar2;
+  }
 
   namespace {
     int cXOtherFile = 29;
@@ -35,6 +45,15 @@ namespace C
     static OtherFileClass *c = new OtherFileClass();
     c->z = cOtherFile + cXOtherFile;
   }
+
+  typedef short cOtherFileType;
+  typedef long cOtherFileType2;
+  static const cOtherFileType cOtherFileVar = 319;
+  static const cOtherFileType2 cOtherFileVar2 = 321;
+  cOtherFileType cOtherFileVar_use ()
+  {
+    return cOtherFileVar + cOtherFileVar2;
+  }
 }
 
 namespace {
This page took 0.025394 seconds and 4 git commands to generate.