[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 323ca78 196/316: New test file f
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 323ca78 196/316: New test file for unions. |
Date: |
Sat, 28 Jan 2017 09:10:01 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 323ca78604063b06c511d4661789526d1425a551
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
New test file for unions.
---
.../cedet/cedet/semantic/tests/testunion.cpp | 28 ++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testunion.cpp
b/test/manual/cedet/cedet/semantic/tests/testunion.cpp
new file mode 100644
index 0000000..8e2d944
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/tests/testunion.cpp
@@ -0,0 +1,28 @@
+// Test unions and completion.
+
+struct myStruct {
+ int base1;
+ int base2;
+
+ union { // Named
+ char *named_str;
+ void *named_ptr;
+ } allocated;
+
+ union { // Anonymous
+ char *anon_str;
+ void *anon_ptr;
+ };
+
+};
+
+int main() {
+ struct myStruct S;
+
+ S.//-1-
+ ; // #1# ( "allocated" "base1" "base2" "anon_str" "anon_ptr" )
+
+ S.allocated.//-2-
+ ; // #2# ( "named_str" "named_ptr" )
+
+}
- [Emacs-diffs] scratch/merge-cedet-tests 82586cd 209/316: eieio: Move to obsolete and use the one that ships with Emacs, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 82586cd 209/316: eieio: Move to obsolete and use the one that ships with Emacs, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e54714f 227/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 4730d02 197/316: Refactor tests, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 82a840d 244/316: Use ldflags and libs for in project libraries, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests cb8b935 245/316: (cit-remove-and-do-shared-lib): Add ldlibs-local test., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ecb61db 211/316: New test files combining macros and EDE, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 853dd10 259/316: New test C file for linux., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 558de0d 220/316: Fake emacs.c for project detection purposes., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 31d40a7 257/316: Fix EIEIO methodinvoke-utest and semantic-fmt-utest., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests cdfb2f7 252/316: Tests for completiong symbols in wisent grammars., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 323ca78 196/316: New test file for unions.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests a86650d 198/316: Use `cedet-version' instead of `cedet-version-print', Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a4202a0 188/316: Call external db testing suite, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 152728b 238/316: New make-type argument to control which include, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests bff505d 132/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ef97bdd 203/316: (cedet-utest-batch): Disable saving EDE's cache file., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c561582 298/316: Improve test utilities, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9ab6e1b 270/316: Emacs Lisp support for cedet integration tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5cc7300 264/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0caf48a 302/316: Improve test output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 975468f 275/316: Add header comments and provide., Edward John Steere, 2017/01/28