diff options
author | Haibo Huang <hhb@google.com> | 2020-09-22 19:03:03 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-09-22 19:03:03 +0000 |
commit | c93bd61c66abb28f4242763556a6540ae020d955 (patch) | |
tree | 196bf451ec7a656bcbaaeffce735fe19e5c7b66f /configuration/bazel/builtin_unreachable.cpp | |
parent | f6e6c94bb2f3db4cf2942188df546e7f97ccea24 (diff) | |
parent | 5fc3332375d47766646a7f0789311d3ec3eefeda (diff) | |
download | google-fruit-c93bd61c66abb28f4242763556a6540ae020d955.tar.gz |
Upgrade google-fruit to 928458857f4b85a0016c2d724486343b4660cb46 am: 873eb760e8 am: efde60e714 am: dc3aaf3620 am: 5fc3332375
Original change: https://android-review.googlesource.com/c/platform/external/google-fruit/+/1433213
Change-Id: Ia606d243d5c4dd78084f3f95049866affc4f445c
Diffstat (limited to 'configuration/bazel/builtin_unreachable.cpp')
-rw-r--r-- | configuration/bazel/builtin_unreachable.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configuration/bazel/builtin_unreachable.cpp b/configuration/bazel/builtin_unreachable.cpp new file mode 100644 index 0000000..11d20cf --- /dev/null +++ b/configuration/bazel/builtin_unreachable.cpp @@ -0,0 +1,13 @@ +int f() { + static int x = 1; + if (x == 1) { + return 0; + } else { + __builtin_unreachable(); + // Note: the lack of return here is intentional + } +} + +int main() { + return f(); +} |