-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we add parent decls until the TranslationUnit
Due to the recursive nature of C++, we must make sure we added all Decls up to the root (TranslationUnitDecl) of the AST to the output, else we might miss important decls. Signed-off-by: Giuliano Belinassi <[email protected]>
- Loading branch information
1 parent
9c0254f
commit 19a5ea3
Showing
4 changed files
with
36,303 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* { dg-options "-DCE_EXTRACT_FUNCTIONS=main -DCE_NO_EXTERNALIZATION" }*/ | ||
/* { dg-xfail }*/ | ||
|
||
typedef unsigned long size_t; | ||
typedef int unused_t; | ||
|
||
extern "C++" { | ||
namespace std | ||
{ | ||
enum class align_val_t: size_t {}; | ||
unsigned int unused; | ||
|
||
}; | ||
}; | ||
|
||
std::align_val_t f(void) | ||
{ | ||
std::align_val_t r; | ||
return r; | ||
} | ||
|
||
/* { dg-final { scan-tree-dump "enum class align_val_t: size_t" } } */ | ||
/* { dg-final { scan-tree-dump-not "unused_t" } } */ | ||
/* { dg-final { scan-tree-dump-not "unused" } } */ |
Oops, something went wrong.