summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/virtualcall.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-08-21 10:13:49 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-08-21 10:13:49 +0000
commit3ecaf02be9c4d284cc9b9bbed3143a492f901e0f (patch)
treec5fa013701a37f6b95c08dc32da44fd98aebc20b /clang/test/Analysis/virtualcall.cpp
parent31f2f1befe7232e29c93070b2190122b75818b22 (diff)
downloadbcm5719-llvm-3ecaf02be9c4d284cc9b9bbed3143a492f901e0f.tar.gz
bcm5719-llvm-3ecaf02be9c4d284cc9b9bbed3143a492f901e0f.zip
Fix invalid test generation by utils/ABITest/ABITestGen.py when the same enum is generated more than once.
When generating records/unions, the same enum type may be generated more than once (with different names). In these cases, the name of the enum values are not sufficiently unique to prevent multiple declarations. E.g: typedef enum T3 { enum0val0 } T3; typedef T3 T2[3]; typedef enum T4 { enum0val0 } T4; typedef union T1 { T2 field0; T4 field1; char field2; } T1; Added a unique suffix to enum values so that multiple identical enum types do not use the same enum value names. One example of this bug is produced by: ABITestGen.py --no-unsigned --no-vector --no-complex --no-bool \ --max-args 0 --max-record-depth 1 -o inputs/test.9921.a.c \ -T inputs/test.9921.b.c -D inputs/test.9921.driver.c \ --min=9921 --count=1 llvm-svn: 216166
Diffstat (limited to 'clang/test/Analysis/virtualcall.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud