summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/compound-assign-op/Inputs/F.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Import/compound-assign-op/Inputs/F.cpp')
-rw-r--r--clang/test/Import/compound-assign-op/Inputs/F.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Import/compound-assign-op/Inputs/F.cpp b/clang/test/Import/compound-assign-op/Inputs/F.cpp
new file mode 100644
index 00000000000..f925ae5ef6e
--- /dev/null
+++ b/clang/test/Import/compound-assign-op/Inputs/F.cpp
@@ -0,0 +1,18 @@
+void f() {
+ unsigned iadd_eq = 0U;
+ iadd_eq += 1U;
+ unsigned isub_eq = 0U;
+ isub_eq -= 1U;
+ unsigned imul_eq = 0U;
+ imul_eq *= 1U;
+ unsigned idiv_eq = 0U;
+ idiv_eq /= 1U;
+ unsigned iand_eq = 0U;
+ iand_eq &= 1U;
+ unsigned ixor_eq = 0U;
+ ixor_eq ^= 1U;
+ unsigned ilsh_eq = 0U;
+ ilsh_eq <<= 1U;
+ unsigned irsh_eq = 0U;
+ irsh_eq >>= 1U;
+}
OpenPOWER on IntegriCloud