aboutsummaryrefslogtreecommitdiffhomepage
path: root/absl/container/fixed_array_exception_safety_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/container/fixed_array_exception_safety_test.cc')
-rw-r--r--absl/container/fixed_array_exception_safety_test.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/absl/container/fixed_array_exception_safety_test.cc b/absl/container/fixed_array_exception_safety_test.cc
index 9984a5e..9aabfd5 100644
--- a/absl/container/fixed_array_exception_safety_test.cc
+++ b/absl/container/fixed_array_exception_safety_test.cc
@@ -12,11 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include "absl/container/fixed_array.h"
+
+#include "absl/base/config.h"
+
+#ifdef ABSL_HAVE_EXCEPTIONS
+
#include <initializer_list>
#include "gtest/gtest.h"
#include "absl/base/internal/exception_safety_testing.h"
-#include "absl/container/fixed_array.h"
namespace absl {
@@ -114,3 +119,5 @@ TEST(FixedArrayExceptionSafety, Fill) {
} // namespace
} // namespace absl
+
+#endif // ABSL_HAVE_EXCEPTIONS