[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 4fe7a1c 085/316: Move tests in c
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 4fe7a1c 085/316: Move tests in cedet/semantic |
Date: |
Fri, 27 Jan 2017 20:03:30 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 4fe7a1cbba2bb8f8de1e1cab369d645cbacbcf57
Author: xscript <address@hidden>
Commit: Edward John Steere <address@hidden>
Move tests in cedet/semantic
---
.../cedet/cedet/semantic/tests/scopetest.cpp | 46 ++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/scopetest.cpp
b/test/manual/cedet/cedet/semantic/tests/scopetest.cpp
new file mode 100644
index 0000000..fd6ec6e
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/tests/scopetest.cpp
@@ -0,0 +1,46 @@
+/* Test scoping rules for c++ in the analyzer. */
+
+namespace {
+
+ class aclass2; // Forward reference.
+
+ class aclass1 {
+ private:
+ int attrp1;
+ int amethodp1(int argp1);
+ aclass2 areference;
+ protected:
+ int attrpr1;
+ public:
+ int attr1;
+ int amethod1(int arg1);
+ };
+}
+
+namespace {
+ class aclass2 : public aclass1
+ {
+ private:
+ int attrp2;
+ int amethodp2(int argp1);
+ public:
+ aclass2(int aninitvalue);
+ ~aclass2();
+ int attr2;
+ int amethod2(int arg2);
+ };
+}
+
+aclass2::aclass2(init aninitvalue)
+{
+ /* This is a comment that talks about aclass1 */
+ aclass1;
+}
+
+int aclass2::amethod2(int arg2)
+{
+ int alocalvar;
+ float q;
+
+ ac;
+}
- [Emacs-diffs] scratch/merge-cedet-tests 8e1fe2d 067/316: Accept any potential project directory during testing, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 8e1fe2d 067/316: Accept any potential project directory during testing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 83c8dc0 068/316: Use random temporary directory for integration tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 66b117d 071/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests feb2025 074/316: Don't check contents after initial fil, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 5812c59 073/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 2cfef8f 048/316: Add test files, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests dd9777f 076/316: Fix interactive unit tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests bc36c86 075/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 4ec19b7 083/316: Test src file for a dirmatch., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 89e6966 077/316: Remove compatibility function `cedet-called-interactively-p'., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 4fe7a1c 085/316: Move tests in cedet/semantic,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 6b4b0a5 078/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3739238 086/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 19ad5c7 095/316: Merge from 1.0pre6 branch, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 217feb1 080/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9641120 108/316: Fake configure.in for project detection purposes., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 85a3b5a 106/316: (cit): Add "cit-projvar.el"., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests adc318b 115/316: New test file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 216e4f4 129/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ceb9293 130/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 7b417f2 131/316: Tests contributed by Barry OReilly, Edward John Steere, 2017/01/27