Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: gdb/testsuite/gdb.cp/cpexprs.cc

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.cp/cpcompletion.exp ('k') | gdb/testsuite/gdb.cp/cpexprs.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.cp/cpexprs.cc
diff --git a/gdb/testsuite/gdb.cp/cpexprs.cc b/gdb/testsuite/gdb.cp/cpexprs.cc
index c8c5ac8a2a7919b2f82f97057818c843f852e3f7..f6b355c3d54519b20d034c53ebe160f10c16a86e 100644
--- a/gdb/testsuite/gdb.cp/cpexprs.cc
+++ b/gdb/testsuite/gdb.cp/cpexprs.cc
@@ -308,6 +308,29 @@ class derived : public base1, public base2
int foo_;
};
+class CV { public:
+ static const int i;
+ typedef int t;
+ void m(t);
+ void m(t) const;
+ void m(t) volatile;
+ void m(t) const volatile;
+};
+const int CV::i = 42;
+#ifdef __GNUC__
+# define ATTRIBUTE_USED __attribute__((used))
+#else
+# define ATTRIBUTE_USED
+#endif
+ATTRIBUTE_USED void CV::m(CV::t) {}
+ATTRIBUTE_USED void CV::m(CV::t) const {}
+ATTRIBUTE_USED void CV::m(CV::t) volatile {}
+ATTRIBUTE_USED void CV::m(CV::t) const volatile {}
+int CV_f (int x)
+{
+ return x + 1;
+}
+
int
test_function (int argc, char* argv[]) // test_function
{ // test_function
@@ -428,6 +451,8 @@ test_function (int argc, char* argv[]) // test_function
fluff* flp = a;
fluff** flpp = a;
+ CV_f(CV::i);
+
return 0;
}
« no previous file with comments | « gdb/testsuite/gdb.cp/cpcompletion.exp ('k') | gdb/testsuite/gdb.cp/cpexprs.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698