summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/volatile-1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/volatile-1.c b/clang/test/CodeGen/volatile-1.c
index ea478841c4d..3e7bbb8f446 100644
--- a/clang/test/CodeGen/volatile-1.c
+++ b/clang/test/CodeGen/volatile-1.c
@@ -82,6 +82,10 @@ int main() {
// ============================================================
// Test cases we get wrong.
+ // A use. We load all of a into a copy of a, then load i. gcc forgets to do
+ // the assignment.
+ (a = a).i;
+
// ============================================================
// Test cases where we intentionally differ from gcc, due to suspected bugs in
// gcc.
OpenPOWER on IntegriCloud